http2-tls 0.4.1 → 0.4.2
raw patch · 2 files changed
+7/−7 lines, 2 filesdep ~http2PVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: http2
API changes (from Hackage documentation)
- Network.HTTP2.TLS.Server: [sioWriteBytes] :: ServerIO -> ByteString -> IO ()
- Network.HTTP2.TLS.Server: ServerIO :: SockAddr -> SockAddr -> IO (StreamId, Stream, Request) -> (Stream -> Response -> IO ()) -> (ByteString -> IO ()) -> ServerIO
+ Network.HTTP2.TLS.Server: ServerIO :: SockAddr -> SockAddr -> IO (a, Request) -> (a -> Response -> IO ()) -> ServerIO a
- Network.HTTP2.TLS.Server: [sioMySockAddr] :: ServerIO -> SockAddr
+ Network.HTTP2.TLS.Server: [sioMySockAddr] :: ServerIO a -> SockAddr
- Network.HTTP2.TLS.Server: [sioPeerSockAddr] :: ServerIO -> SockAddr
+ Network.HTTP2.TLS.Server: [sioPeerSockAddr] :: ServerIO a -> SockAddr
- Network.HTTP2.TLS.Server: [sioReadRequest] :: ServerIO -> IO (StreamId, Stream, Request)
+ Network.HTTP2.TLS.Server: [sioReadRequest] :: ServerIO a -> IO (a, Request)
- Network.HTTP2.TLS.Server: [sioWriteResponse] :: ServerIO -> Stream -> Response -> IO ()
+ Network.HTTP2.TLS.Server: [sioWriteResponse] :: ServerIO a -> a -> Response -> IO ()
- Network.HTTP2.TLS.Server: data () => ServerIO
+ Network.HTTP2.TLS.Server: data () => ServerIO a
- Network.HTTP2.TLS.Server: runIO :: Settings -> Credentials -> Socket -> (ServerIO -> IO (IO ())) -> IO ()
+ Network.HTTP2.TLS.Server: runIO :: Settings -> Credentials -> Socket -> (ServerIO Stream -> IO (IO ())) -> IO ()
- Network.HTTP2.TLS.Server: runIOH2C :: Settings -> Socket -> (ServerIO -> IO (IO ())) -> IO ()
+ Network.HTTP2.TLS.Server: runIOH2C :: Settings -> Socket -> (ServerIO Stream -> IO (IO ())) -> IO ()
Files
- Network/HTTP2/TLS/Server.hs +5/−5
- http2-tls.cabal +2/−2
Network/HTTP2/TLS/Server.hs view
@@ -57,14 +57,14 @@ Server, connectionWindowSize, defaultServerConfig,+ emptyFrameRateLimit, initialWindowSize, maxConcurrentStreams, numberOfWorkers, pingRateLimit,- emptyFrameRateLimit,- settingsRateLimit, rstRateLimit, settings,+ settingsRateLimit, ) import qualified Network.HTTP2.Server as H2Server import Network.HTTP2.Server.Internal (ServerIO, Stream)@@ -195,14 +195,14 @@ :: Settings -> Credentials -> Socket- -> (ServerIO -> IO (IO ()))+ -> (ServerIO Stream -> IO (IO ())) -> IO () runIO settings creds s action = runTLSWithSocket settings creds s "h2" $ \mgr iobackend -> runIO' settings action mgr iobackend runIO'- :: Settings -> (ServerIO -> IO (IO ())) -> T.Manager -> IOBackend -> IO ()+ :: Settings -> (ServerIO Stream -> IO (IO ())) -> T.Manager -> IOBackend -> IO () runIO' settings0@Settings{..} action mgr IOBackend{..} = E.bracket (allocConfigForServer settings0 mgr send recv mySockAddr peerSockAddr)@@ -225,7 +225,7 @@ } runIOH2C- :: Settings -> Socket -> (ServerIO -> IO (IO ())) -> IO ()+ :: Settings -> Socket -> (ServerIO Stream -> IO (IO ())) -> IO () runIOH2C settings0@Settings{..} s action = runTCPServerWithSocket settingsTimeout
http2-tls.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: http2-tls-version: 0.4.1+version: 0.4.2 license: BSD3 license-file: LICENSE maintainer: Kazu Yamamoto <kazu@iij.ad.jp>@@ -41,7 +41,7 @@ crypton-x509-store >=1.6 && <1.7, crypton-x509-validation >=1.6 && <1.7, data-default-class >=0.1 && <0.2,- http2 >=5.3 && <5.4,+ http2 >=5.3.2 && <5.4, network >=3.1.4, network-control >=0.1 && <0.2, network-run >=0.4 && <0.5,