Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines the RenderHeader
type class, with the renderHeader
method.
renderHeader
can be used to render basic header values (acting as
identity on ByteString
s), but it will also work on lists of quality
values, which provides the necessary interface for rendering the full
possibilities of Accept headers.
- class RenderHeader h where
- renderHeader :: h -> ByteString
Documentation
class RenderHeader h where Source
A class for header values, so they may be rendered to their ByteString
representation. Lists of header values and quality-marked header values
will render appropriately.
renderHeader :: h -> ByteString Source
Render a header value to a UTF-8 ByteString
.