Http.Response
HTTP responses.
make status ~headers ~body
is a response with status status
, headers headers
(defaults to []
) and body body
(defaults to ""
).
val of_string : string -> (t, string) Stdlib.result
of_string s
is a response from s
.
val status : t -> int
status r
is the status of r
.
val body : t -> string
body r
is body of r
.