package cohttp-lwt-unix

  1. Overview
  2. Docs
module Net : sig ... end
exception Retry
type t
val create : ?finalise:(t -> unit Net.IO.t) -> ?persistent:bool -> ?ctx:Net.ctx -> Net.endp -> t
val connect : ?finalise:(t -> unit Net.IO.t) -> ?persistent:bool -> ?ctx:Net.ctx -> Net.endp -> t Net.IO.t
val shutdown : t -> unit
val close : t -> unit
val is_closed : t -> bool
val length : t -> int
val notify : t -> unit Net.IO.t
val call : t -> ?headers:Http.Header.t -> ?body:Cohttp_lwt.Body.t -> Http.Method.t -> Uri.t -> (Cohttp.Response.t * Cohttp_lwt.Body.t) Lwt.t
OCaml

Innovation. Community. Security.