Version dev
This is a preliminary version of the documentation. Help us to improve it by filling tickets. We are looking for native english speakers to proof read the documentation. Contact us!
module Ocsigen_http_com:Sending and receiving HTTP framessig..end
exception Connection_closed
exception Lost_connection of exnexception Timeout
exception Keepalive_timeout
exception Aborted
type mode = | | Answer |
| | Query |
| | Nofirstline |
type connection val create_receiver : int -> mode -> Lwt_ssl.socket -> connectionval lock_receiver : connection -> unit Lwt.tval unlock_receiver : connection -> unitval wakeup_next_request : connection -> unitval block_next_request : connection -> unit Lwt.tval get_http_frame : ?head:bool -> connection -> Ocsigen_http_frame.t Lwt.tval connection_id : connection -> intval connection_fd : connection -> Lwt_ssl.sockettype 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 Ocsigen_stream.t -> unit Lwt.ttype sender_type val create_sender : ?server_name:string ->
?headers:Http_headers.t ->
?proto:Ocsigen_http_frame.Http_header.proto ->
unit -> sender_typeval default_sender : sender_typeval send : ?reopen:(unit -> unit Lwt.t) ->
slot ->
clientproto:Ocsigen_http_frame.Http_header.proto ->
?mode:Ocsigen_http_frame.Http_header.http_mode ->
?proto:Ocsigen_http_frame.Http_header.proto ->
?keep_alive:bool ->
head:bool ->
sender:sender_type ->
Ocsigen_http_frame.result -> unit Lwt.tsend may also fail with Interrupted_stream exception if the input stream is interrupted.val abort : connection -> unitval set_result_observer : (Ocsigen_http_frame.Http_header.http_header -> string -> unit Lwt.t) -> unitOcsigen_http_frame.Http_headers.http_header, second as a string.