Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A client library for HTTP/3.
Synopsis
- run :: Connection -> ClientConfig -> Config -> Client a -> IO a
- data ClientConfig = ClientConfig {}
- data Config = Config {}
- allocSimpleConfig :: IO Config
- freeSimpleConfig :: Config -> IO ()
- data Hooks = Hooks {
- onControlFrameCreated :: [H3Frame] -> [H3Frame]
- onHeadersFrameCreated :: [H3Frame] -> [H3Frame]
- onControlStreamCreated :: Stream -> IO ()
- onEncoderStreamCreated :: Stream -> IO ()
- onDecoderStreamCreated :: Stream -> IO ()
- defaultHooks :: Hooks
- module Network.HTTP.Semantics.Client
Runner
run :: Connection -> ClientConfig -> Config -> Client a -> IO a Source #
Running an HTTP/3 client.
Runner arguments
data ClientConfig Source #
Configuration for HTTP/3 or HQ.
allocSimpleConfig :: IO Config Source #
Allocating a simple configuration with a handle-based position reader and a locally allocated timeout manager.
freeSimpleConfig :: Config -> IO () Source #
Freeing a simple configration.
Hooks mainly for error testing.
Hooks | |
|
defaultHooks :: Hooks Source #
Default hooks.