purescheme-wai-routing-core-0.1.2.0: Simple Routing functions for Wai Applications
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Routing.Purescheme.Core.Header

Synopsis

Documentation

headerValue :: ByteString -> (Maybe ByteString -> GenericApplication b) -> GenericApplication b Source #

Extract the value of the first HTTP request header with a given name (ByteString)

headerValue' :: HeaderName -> (Maybe ByteString -> GenericApplication b) -> GenericApplication b Source #

Extract the value of the fist HTTP request header with a given header name