package cohttp

  1. Overview
  2. Docs
type t
val init : unit -> t
val init_with : string -> string -> t
val add : t -> string -> string -> t
val add_opt : t option -> string -> string -> t
val remove : t -> string -> t
val replace : t -> string -> string -> t
val get : t -> string -> string option
val get_multi : t -> string -> string list
val iter : (string -> string list -> unit) -> t -> unit
val map : (string -> string list -> string list) -> t -> t
val fold : (string -> string -> 'a -> 'a) -> t -> 'a -> 'a
val of_list : (string * string) list -> t
val to_list : t -> (string * string) list
val to_lines : t -> string list
val get_content_range : t -> int option
val get_media_type : t -> string option
val get_connection_close : t -> bool
val get_acceptable_media_ranges : t -> (Accept.media_range * Accept.p list) Accept.qlist
val get_acceptable_charsets : t -> Accept.charset Accept.qlist
val get_acceptable_encodings : t -> Accept.encoding Accept.qlist
val get_acceptable_languages : t -> Accept.language Accept.qlist
val get_transfer_encoding : t -> Transfer.encoding
val add_transfer_encoding : t -> Transfer.encoding -> t
val add_authorization : t -> Auth.t -> t
val get_authorization : t -> Auth.t option
val add_authorization_req : t -> Auth.req -> t
val is_form : t -> bool
val user_agent : string
val prepend_user_agent : t -> string -> t
OCaml

Innovation. Community. Security.