package cohttp

  1. Overview
  2. Docs

Parameters

module IO : Make.IO

Signature

type t
type ic = IO.ic
type oc = IO.oc
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 : ic -> t option IO.t
val has_body : t -> bool
val read_body : t -> ic -> Transfer.chunk IO.t
val read_body_to_string : t -> ic -> string IO.t
val write_header : t -> oc -> unit IO.t
val write_body : t -> oc -> string -> unit IO.t
val write : (t -> oc -> unit IO.t) -> t -> oc -> unit IO.t
val is_form : t -> bool
val read_form : t -> ic -> (string * string) list IO.t
OCaml

Innovation. Community. Security.