package cohttp

  1. Overview
  2. Docs

Parameters

module IO : Make.IO

Signature

type t
type ic = IO.ic
type oc = IO.oc
val meth : t -> Code.meth
val uri : t -> Uri.t
val version : t -> Code.version
val path : t -> string
val header : t -> string -> string option
val headers : t -> Header.t
val params : t -> (string * string list) list
val get_param : t -> string -> string option
val transfer_encoding : t -> string
val make : ?meth:Code.meth -> ?version:Code.version -> ?encoding:Transfer.encoding -> ?headers:Header.t -> ?body:'a -> Uri.t -> t
val read : ic -> t option IO.t
val has_body : t -> bool
val read_body : t -> ic -> Transfer.chunk 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) list IO.t
OCaml

Innovation. Community. Security.