Safe Haskell | None |
---|
Lenses for Conduit
types
- method :: Lens' Request Method
- secure :: Lens' Request Bool
- host :: Lens' Request ByteString
- port :: Lens' Request Int
- path :: Lens' Request ByteString
- queryString :: Lens' Request ByteString
- requestBody :: Lens' Request RequestBody
- requestHeaders :: Lens' Request RequestHeaders
- redirectCount :: Lens' Request Int
- checkStatus :: Lens' Request (Status -> ResponseHeaders -> CookieJar -> Maybe SomeException)
- responseTimeout :: Lens' Request (Maybe Int)
Request
lenses
path :: Lens' Request ByteStringSource
Everything from the host to the query string.
redirectCount :: Lens' Request IntSource
How many redirects to follow when getting a resource. 0 means follow no redirects. Default value: 10.
checkStatus :: Lens' Request (Status -> ResponseHeaders -> CookieJar -> Maybe SomeException)Source
Check the status code. Note that this will run after all redirects are performed. Default: return a StatusCodeException on non-2XX responses.