module Network.Wai.Middleware.Routes.ContentTypes
(
contentType
, typeHtml, typePlain, typeJson
, typeXml, typeAtom, typeRss
, typeJpeg, typePng, typeGif
, typeSvg, typeJavascript, typeCss
, typeFlv, typeOgv, typeOctet
)
where
import Data.ByteString (ByteString)
import Data.ByteString.Char8 ()
import Network.HTTP.Types.Header (HeaderName())
contentType :: HeaderName
contentType = "Content-Type"
typeHtml :: ByteString
typeHtml = "text/html; charset=utf-8"
typePlain :: ByteString
typePlain = "text/plain; charset=utf-8"
typeJson :: ByteString
typeJson = "application/json; charset=utf-8"
typeXml :: ByteString
typeXml = "text/xml"
typeAtom :: ByteString
typeAtom = "application/atom+xml"
typeRss :: ByteString
typeRss = "application/rss+xml"
typeJpeg :: ByteString
typeJpeg = "image/jpeg"
typePng :: ByteString
typePng = "image/png"
typeGif :: ByteString
typeGif = "image/gif"
typeSvg :: ByteString
typeSvg = "image/svg+xml"
typeJavascript :: ByteString
typeJavascript = "text/javascript; charset=utf-8"
typeCss :: ByteString
typeCss = "text/css; charset=utf-8"
typeFlv :: ByteString
typeFlv = "video/x-flv"
typeOgv :: ByteString
typeOgv = "video/ogg"
typeOctet :: ByteString
typeOctet = "application/octet-stream"