package scgi

  1. Overview
  2. Docs

Module Scgi.ResponseSource

Sourcetype body = [
  1. | `Stream of int option * char Lwt_stream.t
  2. | `String of string
]

SCGI response

Sourcetype t = {
  1. status : Http_status.t;
  2. headers : Http_header.t list;
  3. body : body;
}
Sourceval make : status:Http_status.t -> ?headers:Http_header.t list -> ?body:body -> unit -> t
Sourceval status_int : t -> int
Sourceval status_string : t -> string
Sourceval add_header : Http_header.t -> t -> t
Sourceval to_debug_string : ?body_max:int -> t -> string
OCaml

Innovation. Community. Security.