module Response: sig .. end
type response = {
|
socket : Unix.file_descr; |
|
status : int; |
|
: (string, string) Stdlib.Hashtbl.t; |
|
body : string; |
}
val response_body : response -> string
val response_status : response -> int
val response_of_socket : Unix.file_descr -> response
val send_line : response -> string -> unit
val phrase_of_status_code : int -> string
: response -> unit
val send : response -> unit
val set_status : int -> response -> response
: string -> string -> response -> response
val set_body : string -> response -> response
val send_string : string -> response -> unit