b0.std
Http.Response
HTTP responses.
ocaml
b0
opam
b0 test
b0.file
b0.kit
b0.memo
b0.tool
type t
The type for HTTP responses.
val make : ?headers:headers -> ?body:string -> int -> t
make status ~headers ~body is a response with status status, headers headers (defaults to []) and body body (defaults to "").
make status ~headers ~body
status
headers
[]
body
""
val of_string : string -> (t, string) result
of_string s is a response from s.
of_string s
s
val status : t -> int
status r is the status of r.
status r
r
val headers : t -> headers
headers r are headers of r
headers r
val body : t -> string
body r is body of r.
body r