Network.HTTP.Media.Encoding

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

Safe Haskell | Safe-Inferred
Language | Haskell2010

Network.HTTP.Media.Encoding

Description

Defines the `Encoding` accept header with an `Accept` instance for use in encoding negotiation.

Synopsis

- data Encoding

# Documentation

data Encoding #

Suitable for HTTP encoding as defined in RFC7231.

Specifically:

    codings = content-coding / "identity" / "*"

#### Instances

Instances details

IsString Encoding # |
Instance details Defined in Network.HTTP.Media.Encoding.Internal Methods fromString :: String -> Encoding #
Show Encoding # |
Instance details Defined in Network.HTTP.Media.Encoding.Internal Methods showsPrec :: Int -> Encoding -> ShowS # show :: Encoding -> String # showList :: [Encoding] -> ShowS #
Eq Encoding # |
Instance details Defined in Network.HTTP.Media.Encoding.Internal Methods (==) :: Encoding -> Encoding -> Bool # (/=) :: Encoding -> Encoding -> Bool #
Ord Encoding # |
Instance details Defined in Network.HTTP.Media.Encoding.Internal Methods compare :: Encoding -> Encoding -> Ordering # (<) :: Encoding -> Encoding -> Bool # (<=) :: Encoding -> Encoding -> Bool # (>) :: Encoding -> Encoding -> Bool # (>=) :: Encoding -> Encoding -> Bool # max :: Encoding -> Encoding -> Encoding # min :: Encoding -> Encoding -> Encoding #
Accept Encoding # |
Instance details Defined in Network.HTTP.Media.Encoding.Internal Methods parseAccept :: ByteString -> Maybe Encoding # matches :: Encoding -> Encoding -> Bool # moreSpecificThan :: Encoding -> Encoding -> Bool # hasExtensionParameters :: Proxy Encoding -> Bool #
RenderHeader Encoding # |
Instance details Defined in Network.HTTP.Media.Encoding.Internal Methods renderHeader :: Encoding -> ByteString #