= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
ON THIS PAGE
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Headers. FIXME(dbuenzli): The semantic of this module considers than a field can contain multiple values. However, it's should be the wrong way to abstract values of headers - and let the user to consider than specific field can have multiple values.
val name : string -> name
name s
is a header name from s
.
Header maps
val empty : headers
empty
is the empty header map.
val is_empty : headers -> bool
is_empty hs
is true
iff hs
is the empty header map.
find n hs
is the value of header n
in hs
(if defined). If n
is multi-valued and defined, we return String.concat "," vs
where vs
are values related to n
in hs
.
Header name values
val user_agent : name
User-Agent.
val content_type : name
Content-Type.
val access_control_allow_origin : name
Access-Control-Allow-Origin.
val access_control_allow_methods : name
Access-Control-Allow-Methods.
val access_control_allow_headers : name
Access-Control-Allow-Headers.
def_multi n vs hs
is hs
with n
bound to the multi-value vs
.