Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Network.HTTP3.Server
Contents
Description
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
- runIO :: Connection -> Config -> (ServerIO Stream -> IO (IO ())) -> IO ()
- data ServerIO a = ServerIO {
- sioMySockAddr :: SockAddr
- sioPeerSockAddr :: SockAddr
- sioReadRequest :: IO (a, Request)
- sioWriteResponse :: a -> Response -> IO ()
Runner
Runner arguments
Configuration for HTTP/3 or HQ.
Constructors
Config | |
Fields |
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.
Constructors
Hooks | |
Fields
|
defaultHooks :: Hooks Source #
Default hooks.
Internal
Constructors
ServerIO | |
Fields
|