Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A server library for HTTP/3.
Synopsis
- run :: Connection -> Config -> Server -> IO ()
- 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.Server
Runner
Runner arguments
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.