Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data SingleHeader = SingleHeader' {}
- newSingleHeader :: Text -> SingleHeader
- singleHeader_name :: Lens' SingleHeader Text
Documentation
data SingleHeader Source #
Inspect one of the headers in the web request, identified by name, for
example, User-Agent
or Referer
. The name isn't case sensitive.
You can filter and inspect all headers with the FieldToMatch
setting
Headers
.
This is used to indicate the web request component to inspect, in the FieldToMatch specification.
Example JSON: "SingleHeader": { "Name": "haystack" }
See: newSingleHeader
smart constructor.
Instances
Create a value of SingleHeader
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:SingleHeader'
, singleHeader_name
- The name of the query header to inspect.
singleHeader_name :: Lens' SingleHeader Text Source #
The name of the query header to inspect.