Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Headers = Headers [Header]
- newtype HeadersTransformFn = AddReplaceOrRemove AddReplaceOrRemoveFields
- data AddReplaceOrRemoveFields = AddReplaceOrRemoveFields {
- addOrReplaceHeaders :: [(CI Text, UnescapedTemplate)]
- removeHeaders :: [CI Text]
Documentation
The actual header data we are transforming..
This newtype is necessary because otherwise we end up with an orphan instance.
Instances
newtype HeadersTransformFn Source #
The defunctionalized transformation on Headers
AddReplaceOrRemove AddReplaceOrRemoveFields | Add or replace matching |
Instances
data AddReplaceOrRemoveFields Source #
The user can supply a set of header keys to be filtered from the request and a set of headers to be added to the request.
AddReplaceOrRemoveFields | |
|