wai-thrift-0.0.1.1: Thrift transport layer for Wai

LicenseMIT
MaintainerYogesh Sajanikar <yogesh_sajanikar@yahoo.com>
Stabilityexperimental
PortabilityPOSIX, WINDOWS
Safe HaskellNone
LanguageHaskell2010

Thrift.Transport.Wai

Description

Support thrift transport for Wai Request and Response.

Synopsis

Documentation

fromRequest :: Request -> IO RequestTransport Source

Creates RequestTransport from WAI request

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