package cohttp-lwt-unix

  1. Overview
  2. Docs
include module type of struct include Cohttp.Request end
type t = Cohttp__Request.t = {
  1. headers : Cohttp__.Header.t;
  2. meth : Cohttp__.Code.meth;
  3. resource : string;
  4. version : Cohttp__.Code.version;
  5. encoding : Cohttp__.Transfer.encoding;
}
val encoding : t -> Cohttp__.Transfer.encoding
val version : t -> Cohttp__.Code.version
val resource : t -> string
val meth : t -> Cohttp__.Code.meth
val headers : t -> Cohttp__.Header.t
module Fields : sig ... end
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
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 uri : t -> Uri.t
val make_for_client : ?headers:Cohttp__.Header.t -> ?chunked:bool -> ?body_length:int64 -> Cohttp__.Code.meth -> Uri.t -> t
val pp_hum : 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
module IO : sig ... end
val read : IO.ic -> [ `Eof | `Invalid of string | `Ok of t ] IO.t
val has_body : t -> [ `No | `Unknown | `Yes ]
val make_body_writer : ?flush:bool -> t -> IO.oc -> writer
val make_body_reader : t -> IO.ic -> reader
val read_body_chunk : reader -> Cohttp__.Transfer.chunk IO.t
val write_header : t -> IO.oc -> unit IO.t
val write_body : writer -> string -> unit IO.t
val write : ?flush:bool -> (writer -> unit IO.t) -> t -> IO.oc -> unit IO.t
OCaml

Innovation. Community. Security.