Module EzAPI.Security
type uninhabited
=
type none
=[
|
`Nosecurity of uninhabited
]
type 'a apikey
=
{
ref_name : string;
name : 'a;
}
type bearer_desc
=
{
bearer_name : string;
format : string option;
}
type basic_desc
=
{
basic_name : string;
}
type bearer
=[
|
`Bearer of bearer_desc
]
type basic
=[
|
`Basic of basic_desc
]
type header
=[
|
`Header of string apikey
]
type cookie
=[
|
`Cookie of string apikey
]
type query
=[
|
`Query of Param.t apikey
]
type scheme
=[
|
none
|
basic
|
bearer
|
header
|
cookie
|
query
]
val unreachable : uninhabited -> 'a
val ref_name : [< `Basic of basic_desc | `Bearer of bearer_desc | `Cookie of 'a apikey | `Header of 'b apikey | `Nosecurity of uninhabited | `Query of 'c apikey ] -> string
val params : [< `Basic of basic_desc & 'a | `Bearer of bearer_desc & 'b | `Cookie of string apikey & 'c | `Header of string apikey & 'd | `Nosecurity of uninhabited & 'e | `Query of Param.t apikey & 'f apikey ] list -> 'f list
module StringSet : sig ... end
val headers : [< `Basic of basic_desc & 'a | `Bearer of bearer_desc & 'b | `Cookie of string apikey & 'c | `Header of string apikey & StringSet.elt apikey | `Nosecurity of uninhabited & 'd | `Query of Param.t apikey & 'e ] list -> StringSet.t
val header : StringSet.t -> (string * string) list