wai-lens-0.1: Lenses for WAI

Safe HaskellNone
LanguageHaskell98

Network.Wai.Lens

Synopsis

Documentation

class HasMethod s a | s -> a where Source

Methods

method :: Lens' s a Source

class HasHttpVersion s a | s -> a where Source

Methods

httpVersion :: Lens' s a Source

class HasRawPathInfo s a | s -> a where Source

Methods

rawPathInfo :: Lens' s a Source

class HasRawQueryString s a | s -> a where Source

class HasHeaders s a | s -> a where Source

Methods

headers :: Lens' s a Source

class HasRemoteHost s a | s -> a where Source

Methods

remoteHost :: Lens' s a Source

class HasPathInfo s a | s -> a where Source

Methods

pathInfo :: Lens' s a Source

Instances

class HasQueryString s a | s -> a where Source

Methods

queryString :: Lens' s a Source

class HasRequestBody s a | s -> a where Source

Methods

requestBody :: Lens' s a Source

class HasVault s a | s -> a where Source

Methods

vault :: Lens' s a Source

class HasStatus s a | s -> a where Source

Methods

status :: Lens' s a Source

value :: (Eq a, Foldable f) => a -> (b -> Const (First b) b) -> f (a, b) -> Const (First b) (f (a, b)) Source

Useful for looking up query string or header values.

req ^. headers . value Content-Type