Module EzAPIServerHttpAf

val limit_open_file : unit -> int
type lwt_server = {
shutdown : unit Lwt.t Stdlib.Lazy.t;
}
val set_debug : unit -> unit
val nb_live_connections : int Stdlib.ref
val listen_cond : unit Lwt_condition.t
val incr_connections : unit -> unit
val decr_connections : int -> unit
val close_socket : Lwt_unix.file_descr -> unit Lwt.t
val establish_server_generic : (Lwt_unix.file_descr -> Unix.sockaddr -> unit Lwt.t) -> ?⁠fd:Lwt_unix.file_descr -> ?⁠backlog:int -> Unix.sockaddr -> (Lwt_unix.sockaddr -> Lwt_unix.file_descr -> unit) -> int -> lwt_server * unit Lwt.t
val establish_server_with_client_socket : ?⁠server_fd:Lwt_unix.file_descr -> ?⁠backlog:int -> ?⁠no_close:bool -> nb_max_connections:int -> Lwt_unix.sockaddr -> (Lwt_unix.sockaddr -> Lwt_unix.file_descr -> unit Lwt.t) -> lwt_server Lwt.t
val mk_uri : Httpaf.Request.t -> Uri.t
val meth_from_httpaf : Httpaf.Request.t -> [> `DELETE | `GET | `HEAD | `OPTIONS | `PATCH | `POST | `PUT ] option
val headers_from_httpaf : Httpaf.Request.t -> Httpaf.Headers.value list EzAPIServerUtils.StringMap.t
val version_from_httpaf : Httpaf.Request.t -> [> `HTTP_1_0 | `HTTP_1_1 ]
val read_body : [ `read ] Httpaf.Body.t -> string Lwt.t
val debug_httpaf : Httpaf.Request.t -> unit
val register_ip : Httpaf.Request.t -> float -> Unix.sockaddr -> unit
val connection_handler : ?⁠catch:(string -> exn -> string EzAPIServerUtils.Answer.t Lwt.t) -> EzAPIServerUtils.server -> Unix.sockaddr -> Lwt_unix.file_descr -> unit Lwt.t
val create_server : ?⁠catch:(string -> exn -> string EzAPIServerUtils.Answer.t Lwt.t) -> max_connections:int -> int -> EzAPIServerUtils.server_kind -> unit Lwt.t
val server : ?⁠catch:(string -> exn -> string EzAPIServerUtils.Answer.t Lwt.t) -> (int * EzAPIServerUtils.server_kind) list -> 'a Lwt.t