Safe Haskell | None |
---|
- intercept :: Protocol p => (Request -> WebSockets p ()) -> Request -> Maybe (Source (ResourceT IO) ByteString -> Connection -> ResourceT IO ())
- interceptWith :: Protocol p => WebSocketsOptions -> (Request -> WebSockets p ()) -> Request -> Maybe (Source (ResourceT IO) ByteString -> Connection -> ResourceT IO ())
Documentation
intercept :: Protocol p => (Request -> WebSockets p ()) -> Request -> Maybe (Source (ResourceT IO) ByteString -> Connection -> ResourceT IO ())Source
For use with settingsIntercept
from the Warp web server.
interceptWith :: Protocol p => WebSocketsOptions -> (Request -> WebSockets p ()) -> Request -> Maybe (Source (ResourceT IO) ByteString -> Connection -> ResourceT IO ())Source
Variation of intercept
which allows custom options.