second-transfer-0.10.0.4: Second Transfer HTTP/2 web server

Safe HaskellNone
LanguageHaskell2010

SecondTransfer.Http1.Proxy

Synopsis

Documentation

ioProxyToConnection :: forall m. MonadIO m => IOCallbacks -> HttpRequest m -> m (HttpResponse m, IOCallbacks)

Takes an IOCallbacks and serializes a request (encoded HTTP/2 style in headers and streams) on top of the callback, waits for the results, and returns the response. Notice that this proxy may fail for any reason, do take measures and handle exceptions. Also, must headers manipulations (e.g. removing the Connection header) are left to the upper layers. And this doesn't include managing any kind of pipelining in the http/1.1 connection, however, close is not done, so keep-alive (not pipelineing) should be OK.