Module Http_types.Request

type t = {
  1. uri : Uri_sexp.t;
  2. meth : [ `GET | `POST | `HEAD | `DELETE | `PUT | `CONNECT | `OPTIONS | `TRACE | `Other of string ];
  3. headers : (string * string) list;
  4. chunked : bool;
  5. body : Body.t;
  6. body_length : int64 option;
}
val sexp_of_t : t -> Sexplib0.Sexp.t
val path : t -> string
val path_and_query : t -> string
val make : ?headers:(string * string) list -> ?body:Body.t -> ?body_length:Core.Int64.t -> [ `GET | `POST | `HEAD | `DELETE | `PUT | `CONNECT | `OPTIONS | `TRACE | `Other of string ] -> Uri_sexp.t -> t
val with_headers : t -> (string * string) Base__List.t -> t

with_headers req h extends request headers with h