Parser for the underlying type.
Parser for a single conneg value.
Parser for a list of conneg values.
Formats the content-negotiation q
parameter.
Parser for the content-negotiation q
parameter.
Extract an instance of T
from the specified value.
Extract an instance of T
from the specified value.
(Changed in version 2.9.0) The p0
call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.
Writes the specified T
to a String
.
Writes the specified T
to a String
. A return value of None
means that the specified value serialises to
nothing (the empty string, Nil
, ...).
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
Used to parse / serialize content negotiation header values.
In order to implement a format for a specific type, application developers only need to provide a
Parser
instance for that type by implementing the entry method.