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

Safe HaskellNone
LanguageHaskell2010

SecondTransfer.Http1.Types

Synopsis

Documentation

data HttpRequest m

Request. This is an old-fashioned HTTP request, with less data than that defined at CoherentWorker: just headers and perhaps a request streaming body. As in other places in this library, we expect method and path to be given as pseudo-headers

data HttpResponse m

Response. Status should be given as a pseudo-header

class Monad m => Http1CycleController m contrl where

Methods

releaseResponseResources :: contrl -> m ()

class (Http1CycleController m contrl, Monad m) => ProxyToHttpServer m conn contrl | conn -> contrl m where

Something that can talk to a HTTP 1.1 server by using a connection and sending the request to it

Methods

proxyToConnection :: conn -> HttpRequest m -> m (HttpResponse m, contrl)