packages feed

http-semantics 0.4.0 → 0.4.1

raw patch · 4 files changed

+20/−1 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Network.HTTP.Semantics.Server: auxSendInformational :: Aux -> Status -> ResponseHeaders -> IO ()
+ Network.HTTP.Semantics.Server.Internal: [auxSendInformational] :: Aux -> Status -> ResponseHeaders -> IO ()
- Network.HTTP.Semantics.Server.Internal: Aux :: Handle -> SockAddr -> SockAddr -> Aux
+ Network.HTTP.Semantics.Server.Internal: Aux :: Handle -> SockAddr -> SockAddr -> (Status -> ResponseHeaders -> IO ()) -> Aux

Files

ChangeLog.md view
@@ -1,5 +1,15 @@ # ChangeLog for http-semantics +## 0.4.1++* Add `auxSendInformational` to the server `Aux` for sending 1xx informational+  responses (e.g. 103 Early Hints) ahead of the final response.++## 0.4.0++* This version is idential to v0.3.1 which includes breaking changes+  and thus is deprecated.+ ## 0.3.1  * Adding defaultAux and auxSendPing for client.
Network/HTTP/Semantics/Server.hs view
@@ -22,6 +22,7 @@     auxTimeHandle,     auxMySockAddr,     auxPeerSockAddr,+    auxSendInformational,      -- * Response     Response,@@ -82,6 +83,7 @@         { auxTimeHandle = T.emptyHandle         , auxMySockAddr = SockAddrInet 0 0         , auxPeerSockAddr = SockAddrInet 0 0+        , auxSendInformational = \_ _ -> return ()         }  ----------------------------------------------------------------
Network/HTTP/Semantics/Server/Internal.hs view
@@ -4,6 +4,7 @@     Aux (..), ) where +import qualified Network.HTTP.Types as H import Network.Socket (SockAddr) import qualified System.TimeManager as T @@ -23,4 +24,10 @@     -- ^ Local socket address copied from 'Config'.     , auxPeerSockAddr :: SockAddr     -- ^ Remove socket address copied from 'Config'.+    , auxSendInformational :: H.Status -> H.ResponseHeaders -> IO ()+    -- ^ Send an informational (1xx) response, e.g. 103 Early Hints, on this+    --   request's stream before the final response. May be called multiple+    --   times. A no-op in 'defaultAux'.+    --+    --   @since 0.4.1     }
http-semantics.cabal view
@@ -1,6 +1,6 @@ cabal-version:   3.0 name:            http-semantics-version:         0.4.0+version:         0.4.1 license:         BSD-3-Clause license-file:    LICENSE maintainer:      Kazu Yamamoto <kazu@iij.ad.jp>