packages feed

http2-client 0.3.0.1 → 0.3.0.2

raw patch · 3 files changed

+7/−1 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Network.HTTP2.Client: [_close] :: Http2Client -> IO ()
- Network.HTTP2.Client: Http2Client :: (ByteString -> IO (IO (FrameHeader, FramePayload))) -> (SettingsList -> IO (IO (FrameHeader, FramePayload))) -> (ErrorCodeId -> ByteString -> IO ()) -> (forall a. StreamStarter a) -> IncomingFlowControl -> OutgoingFlowControl -> IO PayloadSplitter -> !Http2ClientAsyncs -> Http2Client
+ Network.HTTP2.Client: Http2Client :: (ByteString -> IO (IO (FrameHeader, FramePayload))) -> (SettingsList -> IO (IO (FrameHeader, FramePayload))) -> (ErrorCodeId -> ByteString -> IO ()) -> (forall a. StreamStarter a) -> IncomingFlowControl -> OutgoingFlowControl -> IO PayloadSplitter -> !Http2ClientAsyncs -> IO () -> Http2Client

Files

app/Main.hs view
@@ -223,6 +223,8 @@      _gtfo conn HTTP2.NoError _finalMessage +    _close conn+     return ()   where     tlsParams = TLS.ClientParams {
http2-client.cabal view
@@ -1,5 +1,5 @@ name:                http2-client-version:             0.3.0.1+version:             0.3.0.2 synopsis:            A native HTTP2 client library. description:         Please read the README.md at the homepage. homepage:            https://github.com/lucasdicioccio/http2-client
src/Network/HTTP2/Client.hs view
@@ -170,6 +170,8 @@   -- ^ Returns a function to split a payload.   , _asyncs         :: !Http2ClientAsyncs   -- ^ Asynchronous operations threads.+  , _close           :: IO ()+  -- ^ Closes the network connection.   }  -- | Set of Async threads running an Http2Client.@@ -446,6 +448,8 @@     aSettings <- async =<< _settings initSettings      let _asyncs = Http2ClientAsyncs aSettings aCredit aHPACK aControl aIncoming++    let _close = closeConnection conn      return $ Http2Client{..}