Http.Response
HTTP responses.
type t
The type for HTTP responses.
val v : ?headers:headers -> ?body:string -> int -> t
v status ~headers ~body is a response with status status, headers headers (defaults to []) and body body (defaults to "").
v status ~headers ~body
status
headers
[]
body
""
val of_string : string -> (t, string) Stdlib.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