package dream-httpaf

  1. Overview
  2. Docs
Internal: shared http/af stack for Dream (server) and Hyper (client)

Install

Dune Dependency

Authors

Maintainers

Sources

dream-1.0.0-alpha5.tar.gz
sha256=05bc7f6aff94893c151f3a5bcdee3328920c69b3763fac49ba27348dc7745901
md5=de6f6908ae899c9e85f2c751a0263932

doc/dream-httpaf.dream-httpaf_/Dream_httpaf_/Headers/index.html

Module Dream_httpaf_.HeadersSource

Sourcetype t
Sourcetype name = string
Sourcetype value = string
Sourceval ci_equal : string -> string -> bool

Case-insensitive equality for testing header names or values

Sourceval empty : t
Sourceval of_list : (name * value) list -> t
Sourceval of_rev_list : (name * value) list -> t
Sourceval to_list : t -> (name * value) list
Sourceval to_rev_list : t -> (name * value) list
Sourceval add : t -> name -> value -> t
Sourceval add_unless_exists : t -> name -> value -> t
Sourceval add_list : t -> (name * value) list -> t
Sourceval add_multi : t -> (name * value list) list -> t
Sourceval remove : t -> name -> t
Sourceval replace : t -> name -> value -> t
Sourceval mem : t -> name -> bool
Sourceval get : t -> name -> value option
Sourceval get_exn : t -> name -> value
Sourceval get_multi : t -> name -> value list
Sourceval iter : f:(name -> value -> unit) -> t -> unit
Sourceval fold : f:(name -> value -> 'a -> 'a) -> init:'a -> t -> 'a
Sourceval to_string : t -> string
Sourceval pp_hum : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.