Module Cohttp_lwt_unix.Request
include module type of struct include Cohttp.Request end
type t = Cohttp__Request.t = {
meth : Cohttp__.Code.meth;
scheme : string option;
resource : string;
version : Cohttp__.Code.version;
encoding : Cohttp__.Transfer.encoding;
}
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val meth : t -> Cohttp__.Code.meth
val scheme : t -> string option
val resource : t -> string
val version : t -> Cohttp__.Code.version
val encoding : t -> Cohttp__.Transfer.encoding
val compare : t -> t -> int
val make :
?meth:Cohttp__.Code.meth ->
?version:Cohttp__.Code.version ->
?encoding:Cohttp__.Transfer.encoding ->
?headers:Cohttp__.Header.t ->
Uri.t ->
t
val is_keep_alive : t -> bool
val make_for_client :
?headers:Cohttp__.Header.t ->
?chunked:bool ->
?body_length:int64 ->
Cohttp__.Code.meth ->
Uri.t ->
t
val pp_hum : Stdlib.Format.formatter -> t -> unit
module Make : sig ... end
include sig ... end
type reader = Cohttp__Request.Make(Cohttp_lwt_unix__.Io).reader
type writer = Cohttp__Request.Make(Cohttp_lwt_unix__.Io).writer
val read : IO.ic -> [ `Eof | `Invalid of string | `Ok of t ] IO.t
val has_body : t -> [ `No | `Unknown | `Yes ]
val read_body_chunk : reader -> Cohttp__.Transfer.chunk IO.t