package contract

  1. Overview
  2. Docs

Module Contract.RequestSource

Sourcetype t = {
  1. method_ : Endpoint.method_;
  2. path : string;
  3. query : (string * string) list;
  4. body : Yojson.Safe.t option;
}

Pure HTTP-like request value used by the validator.

Query values are already split into key/value pairs. The library does not parse URLs or perform percent-decoding yet.

Sourceval make : ?query:(string * string) list -> ?body:Yojson.Safe.t -> method_:Endpoint.method_ -> path:string -> unit -> t