module Http_com:Who can raise the exceptions: R: receiver r: receiver stream S: sendersig..end
exception Connection_closed
R
exception Lost_connection of exn
RrS
exception Timeout
RrS
exception Keepalive_timeout
exception Aborted
RrS
type mode =
| |
Answer |
| |
Query |
| |
Nofirstline |
type connection
val create_receiver : mode -> Lwt_ssl.socket -> connectionval lock_receiver : connection -> unit Lwt.tval unlock_receiver : connection -> unitval get_http_frame : ?head:bool -> connection -> Http_frame.t Lwt.ttype slot
val start_processing : connection -> (slot -> unit Lwt.t) -> unitval wait_all_senders : connection -> unit Lwt.tval write_stream : ?chunked:bool -> Lwt_chan.out_channel -> string Ocsistream.t -> unit Lwt.ttype sender_type
val create_sender : ?server_name:string ->
?headers:Http_headers.t ->
?proto:Http_frame.Http_header.proto -> unit -> sender_typeval default_sender : sender_typeval send : slot ->
clientproto:Http_frame.Http_header.proto ->
?mode:Http_frame.Http_header.http_mode ->
?proto:Http_frame.Http_header.proto ->
keep_alive:bool ->
head:bool -> sender:sender_type -> Http_frame.result -> unit Lwt.tsend may also fail with Interrupted_stream exception if the input
stream is interrupted.val abort : connection -> unit