package resto-cohttp

  1. Overview
  2. Docs

Module Resto_cohttp.CorsSource

Sourcetype t = {
  1. allowed_headers : string list;
  2. allowed_origins : string list;
}
Sourceval default : t
Sourceval add_allow_origin : Cohttp.Header.t -> t -> string option -> Cohttp.Header.t
Sourceval add_headers : Cohttp.Header.t -> t -> string option -> Cohttp.Header.t
Sourceval check_host : Cohttp.Header.t -> t -> bool
OCaml

Innovation. Community. Security.