Skip to content

Adds three more MIME types #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/Orb/Response/ContentType.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module Orb.Response.ContentType
, applicationXRarCompressed
, applicationXSh
, applicationXTar
, applicationXWwwFormUrlencoded
, applicationXhtmlXml
, applicationXml
, applicationZip
Expand All @@ -29,11 +30,13 @@ module Orb.Response.ContentType
, imageTiff
, imageWebp
, imageXIcon
, multipartFormData
, textCalendar
, textCss
, textCsv
, textHtml
, textJavascript
, textPlain
, videoMpeg
, videoWebm
, videoXMsvideo
Expand Down Expand Up @@ -123,6 +126,12 @@ applicationXSh = BS8.pack "application/x-sh"
applicationXTar :: ContentType
applicationXTar = BS8.pack "application/x-tar"

{- | A 'BS.ByteString' representation of the
/application\/x-www-form-urlencoded/ MIME type (HTML form data).
-}
applicationXWwwFormUrlencoded :: ContentType
applicationXWwwFormUrlencoded = BS8.pack "application/x-www-form-urlencoded"

{- | A 'BS.ByteString' representation of the /application\/xhtml+xml/ MIME type
(XHTML documents).
-}
Expand Down Expand Up @@ -219,6 +228,12 @@ icons).
imageXIcon :: ContentType
imageXIcon = BS8.pack "image/x-icon"

{- | A 'BS.ByteString' representation of the /multipart\/form-data/ MIME type
(HTML form data).
-}
multipartFormData :: ContentType
multipartFormData = BS8.pack "multipart/form-data"

{- | A 'BS.ByteString' representation of the /text\/calendar/ MIME type (.ics
calendar files).
-}
Expand Down Expand Up @@ -249,6 +264,12 @@ scripts).
textJavascript :: ContentType
textJavascript = BS8.pack "text/javascript"

{- | A 'BS.ByteString' representation of the /text\/plain/ MIME type (plain
text).
-}
textPlain :: ContentType
textPlain = BS8.pack "text/plain"

{- | A 'BS.ByteString' representation of the /video\/mpeg/ MIME type (.mpeg or
.mpg videos).
-}
Expand Down