package trail

  1. Overview
  2. Docs
type args = {
  1. origin : string;
  2. credentials : bool;
  3. max_age : int64;
  4. headers : string list;
  5. expose : string list;
  6. methods : string list;
  7. send_preflight_response : bool;
}
type state = args
val config : ?origin:string -> ?credentials:bool -> ?max_age:int64 -> ?headers:string list -> ?expose:string list -> ?methods:string list -> ?send_preflight_response:bool -> unit -> args
val init : args -> state
val call : Conn.t -> state -> Conn.t
OCaml

Innovation. Community. Security.