Skip to content
Open
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@
## 0.12.6 [unreleased]

* Remove `array` dependency
* Add parsing and rendering functions for `Status`
* Add pattern synonyms for `HttpVersion`
* `Http09`
* `Http10`
* `Http11`
* `Http20`
* `Http30`
* Add pattern synonyms for `Status`
* all of format `StatusXXX`
* Add more constant headers:
* `hAcceptPatch`
* `hAccessControlAllowCredentials`
* `hAccessControlAllowHeaders`
* `hAccessControlAllowMethods`
* `hAccessControlAllowOrigin`
* `hAccessControlExposeHeaders`
* `hAccessControlMaxAge`
* `hAccessControlRequestMethod`
* `hAltSvc`
* `hContentDigest`
* `hContentSecurityPolicy`
* `hContentSecurityPolicyReportOnly`
* `hForwarded`
* `hLink`
* `hStrictTransportSecurity`

## 0.12.5 [2026-05-31]

Expand Down
34 changes: 29 additions & 5 deletions Network/HTTP/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module Network.HTTP.Types (
-- * Methods

-- | __For more information__: "Network.HTTP.Types.Method"

Method,

-- ** Constants
Expand All @@ -25,7 +24,6 @@ module Network.HTTP.Types (
-- * Versions

-- | __For more information__: "Network.HTTP.Types.Version"

HttpVersion (..),
http09,
http10,
Expand All @@ -36,11 +34,20 @@ module Network.HTTP.Types (
-- * Status

-- | __For more information__: "Network.HTTP.Types.Status"

Status (..),
mkStatus,

-- ** Parsing and Rendering
parseStatusCode,
renderStatusCode,
parseFullStatus,
renderFullStatus,

-- ** Low level functions
renderStatusCodeToPtr,
renderFullStatusToPtr,

-- ** Constants
mkStatus,
status100,
continue100,
status101,
Expand Down Expand Up @@ -139,6 +146,8 @@ module Network.HTTP.Types (
httpVersionNotSupported505,
status511,
networkAuthenticationRequired511,

-- *** Category checks
statusIsInformational,
statusIsSuccessful,
statusIsRedirection,
Expand All @@ -155,30 +164,43 @@ module Network.HTTP.Types (
RequestHeaders,
ResponseHeaders,

-- ** Header constants
-- ** Constants
hAccept,
hAcceptCharset,
hAcceptEncoding,
hAcceptLanguage,
hAcceptPatch,
hAcceptRanges,
hAccessControlAllowCredentials,
hAccessControlAllowHeaders,
hAccessControlAllowMethods,
hAccessControlAllowOrigin,
hAccessControlExposeHeaders,
hAccessControlMaxAge,
hAccessControlRequestMethod,
hAge,
hAllow,
hAltSvc,
hAuthorization,
hCacheControl,
hConnection,
hContentDigest,
hContentDisposition,
hContentEncoding,
hContentLanguage,
hContentLength,
hContentLocation,
hContentMD5,
hContentRange,
hContentSecurityPolicy,
hContentSecurityPolicyReportOnly,
hContentType,
hCookie,
hDate,
hETag,
hExpect,
hExpires,
hForwarded,
hFrom,
hHost,
hIfMatch,
Expand All @@ -187,6 +209,7 @@ module Network.HTTP.Types (
hIfRange,
hIfUnmodifiedSince,
hLastModified,
hLink,
hLocation,
hMaxForwards,
hMIMEVersion,
Expand All @@ -201,6 +224,7 @@ module Network.HTTP.Types (
hRetryAfter,
hServer,
hSetCookie,
hStrictTransportSecurity,
hTE,
hTrailer,
hTransferEncoding,
Expand Down
Loading
Loading