package ocsigenserver

  1. Overview
  2. Docs
exception Connection_closed
exception Lost_connection of exn
exception Timeout
exception Keepalive_timeout
exception Aborted
type mode =
  1. | Answer
  2. | Query
  3. | Nofirstline
type connection
val create_receiver : int -> mode -> Lwt_ssl.socket -> connection
val lock_receiver : connection -> unit Lwt.t
val unlock_receiver : connection -> unit
val wakeup_next_request : connection -> unit
val block_next_request : connection -> unit Lwt.t
val get_http_frame : ?head:bool -> connection -> Ocsigen_http_frame.t Lwt.t
val connection_id : connection -> int
val connection_fd : connection -> Lwt_ssl.socket
val closed : connection -> unit Lwt.t
type slot
val start_processing : connection -> (slot -> unit Lwt.t) -> unit
val wait_all_senders : connection -> unit Lwt.t
val write_stream : ?chunked:bool -> Lwt_io.output_channel -> string Ocsigen_stream.t -> unit Lwt.t
type sender_type
val create_sender : ?server_name:string -> ?headers:Http_headers.t -> ?proto:Ocsigen_http_frame.Http_header.proto -> unit -> sender_type
val default_sender : sender_type
val send_100_continue : slot -> unit Lwt.t
val 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.t
val abort : connection -> unit
val set_result_observer : (Ocsigen_http_frame.Http_header.http_header -> string -> unit Lwt.t) -> unit
val gmtdate : float -> string
OCaml

Innovation. Community. Security.