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.
Synopsis
-
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
.
Instances
RenderHeader ByteString Source # | |
Defined in Network.HTTP.Media.RenderHeader renderHeader :: ByteString -> ByteString Source # |
|
RenderHeader Language Source # | |
Defined in Network.HTTP.Media.Language.Internal renderHeader :: Language -> ByteString Source # |
|
RenderHeader MediaType Source # | |
Defined in Network.HTTP.Media.MediaType.Internal renderHeader :: MediaType -> ByteString Source # |
|
RenderHeader Encoding Source # | |
Defined in Network.HTTP.Media.Encoding.Internal renderHeader :: Encoding -> ByteString Source # |
|
RenderHeader Charset Source # | |
Defined in Network.HTTP.Media.Charset.Internal renderHeader :: Charset -> ByteString Source # |
|
RenderHeader h => RenderHeader [h] Source # | |
Defined in Network.HTTP.Media.RenderHeader renderHeader :: [h] -> ByteString Source # |
|
RenderHeader h => RenderHeader ( Quality h) Source # | |
Defined in Network.HTTP.Media.Quality renderHeader :: Quality h -> ByteString Source # |