http-media-0.6.4: Processing HTTP Content-Type and Accept headers

Safe HaskellSafe
LanguageHaskell2010

Network.HTTP.Media.RenderHeader

Description

Defines the RenderHeader type class, with the renderHeader method. renderHeader can be used to render basic header values (acting as identity on ByteStrings), but it will also work on lists of quality values, which provides the necessary interface for rendering the full possibilities of Accept headers.

Synopsis

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.

Minimal complete definition

renderHeader

Methods

renderHeader :: h -> ByteString Source #

Render a header value to a UTF-8 ByteString.