| License | MIT |
|---|---|
| Maintainer | Yogesh Sajanikar <yogesh_sajanikar@yahoo.com> |
| Stability | experimental |
| Portability | POSIX, WINDOWS |
| Safe Haskell | None |
| Language | Haskell2010 |
Thrift.Transport.Wai
Description
Support thrift transport for Wai Request and Response.
- data RequestTransport
- data StreamTransport
- fromRequest :: Request -> IO RequestTransport
- toStreamTransport :: (Builder -> IO ()) -> IO () -> StreamTransport
- thriftWaiApp :: (Protocol ip, Protocol op) => h -> (RequestTransport -> ip RequestTransport) -> (StreamTransport -> op StreamTransport) -> (h -> (ip RequestTransport, op StreamTransport) -> IO Bool) -> Application
- thriftMiddleware :: (Protocol ip, Protocol op) => h -> (RequestTransport -> ip RequestTransport) -> (StreamTransport -> op StreamTransport) -> (h -> (ip RequestTransport, op StreamTransport) -> IO Bool) -> Application -> Application
Documentation
data RequestTransport Source
Instances
data StreamTransport Source
Instances
fromRequest :: Request -> IO RequestTransport Source
Creates RequestTransport from WAI request
toStreamTransport :: (Builder -> IO ()) -> IO () -> StreamTransport Source
thriftWaiApp :: (Protocol ip, Protocol op) => h -> (RequestTransport -> ip RequestTransport) -> (StreamTransport -> op StreamTransport) -> (h -> (ip RequestTransport, op StreamTransport) -> IO Bool) -> Application Source
thriftMiddleware :: (Protocol ip, Protocol op) => h -> (RequestTransport -> ip RequestTransport) -> (StreamTransport -> op StreamTransport) -> (h -> (ip RequestTransport, op StreamTransport) -> IO Bool) -> Application -> Application Source
Creates Wai middleware for the given handler