package cohttp

  1. Overview
  2. Docs

Parameters

module IO : IO.S

Signature

module IO : sig ... end
type t = r
val version : t -> Code.version
val status : t -> Code.status_code
val headers : t -> Header.t
val make : ?version:Code.version -> ?status:Code.status_code -> ?encoding:Transfer.encoding -> ?headers:Header.t -> unit -> t
val read : IO.ic -> t option IO.t
val has_body : t -> bool
val read_body_chunk : t -> IO.ic -> Transfer.chunk IO.t
val is_form : t -> bool
val read_form : t -> IO.ic -> (string * string list) list IO.t
val write_header : t -> IO.oc -> unit IO.t
val write_body : t -> IO.oc -> string -> unit IO.t
val write : (t -> IO.oc -> unit IO.t) -> t -> IO.oc -> unit IO.t
OCaml

Innovation. Community. Security.