Valum.ContentNegotiation – valum-0.3 Reference Manual
ContentNegotiation
Description:
public
namespace
ContentNegotiation
Content negociation for various headers.
Namespace:
Valum.ContentNegotiation
Package:
valum-0.3
Content:
Methods:
public
HandlerCallback
accept
(
string
content_types,
owned
ForwardCallback
<
string
> forward =
forward
)
Negotiate a 'Accept' header.
public
HandlerCallback
accept_charset
(
string
charsets,
owned
ForwardCallback
<
string
> forward =
forward
)
Negotiate a 'Accept-Charset' header.
public
HandlerCallback
accept_encoding
(
string
encodings,
owned
ForwardCallback
<
string
> forward =
forward
)
Negotiate a 'Accept-Encoding' header.
public
HandlerCallback
accept_language
(
string
languages,
owned
ForwardCallback
<
string
> forward =
forward
)
Negotiate a 'Accept-Language' header.
public
HandlerCallback
accept_ranges
(
string
ranges,
owned
ForwardCallback
<
string
> forward =
forward
)
Negotiate a 'Accept-Range' header.
public
HandlerCallback
accept_transfer_encoding
(
string
encodings,
owned
ForwardCallback
<
string
> forward =
forward
)
Negotiate a 'TE' header.
public
HandlerCallback
negotiate
(
string
header_name,
string
expectations,
owned
ForwardCallback
<
string
> forward =
forward
,
EqualFunc
<
string
> match = (
EqualFunc
< string >)
str_case_equal
)
Negotiate a HTTP header against a set of expectations.
2022 vala-language.org