package scgi

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

SCGI response

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

Innovation. Community. Security.