package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Httpaf = Dream_httpaf_.Httpaf
module Hpack = Dream_hpack.Hpack
type name = string
type value = string
type header = Hpack.header = {
  1. name : name;
  2. value : value;
  3. sensitive : bool;
}
type t = header list
val empty : t
val of_rev_list : (name * value) list -> header list
val of_list : (name * value) list -> header list
val to_rev_list : header list -> (name * value) list
val to_list : header list -> (name * value) list
val to_hpack_list : 'a list -> 'a list
exception Local
module CI : sig ... end
val mem : header list -> string -> bool
val add : header list -> ?sensitive:bool -> name -> value -> header list
val add_list : header list -> (name * value) list -> header list
val add_multi : header list -> (name * value list) list -> header list
val add_unless_exists : header list -> ?sensitive:bool -> name -> value -> header list
val replace : header list -> ?sensitive:bool -> name -> value -> header list
val remove : header list -> string -> header list
val get : header list -> string -> value option
val get_exn : header list -> string -> value
val get_pseudo : header list -> string -> value option
val get_pseudo_exn : header list -> string -> value
val get_multi : header list -> string -> value list
val get_multi_pseudo : header list -> string -> value list
module Pseudo : sig ... end
val iter : f:(name -> value -> unit) -> header list -> unit
val fold : f:(name -> value -> 'a -> 'a) -> init:'a -> header list -> 'a
val exists : f:(name -> value -> bool) -> header list -> bool
val valid_headers : ?is_request:bool -> header list -> bool
val valid_request_headers : header list -> bool
val valid_response_headers : header list -> bool
val method_path_and_scheme_or_malformed : header list -> [> `Malformed | `Valid of value * value * value ]
val trailers_valid : header list -> bool
val is_valid_h2c_connection : string -> bool
val of_http1 : Httpaf.Request.t -> (header list, string) result
val to_string : header list -> string
val pp_hum : Format.formatter -> header list -> unit
OCaml

Innovation. Community. Security.