Safe Haskell | None |
---|
Lenses for Conduit
types
- method :: Lens' (Request m) Method
- secure :: Lens' (Request m) Bool
- host :: Lens' (Request m) ByteString
- port :: Lens' (Request m) Int
- path :: Lens' (Request m) ByteString
- queryString :: Lens' (Request m) ByteString
- requestBody :: Lens' (Request m) (RequestBody m)
- requestHeaders :: Lens' (Request m) RequestHeaders
- redirectCount :: Lens' (Request m) Int
- checkStatus :: Lens' (Request m) (Status -> ResponseHeaders -> CookieJar -> Maybe SomeException)
- responseTimeout :: Lens' (Request m) (Maybe Int)
Request
lenses
host :: Lens' (Request m) ByteStringSource
path :: Lens' (Request m) ByteStringSource
Everything from the host to the query string.
queryString :: Lens' (Request m) ByteStringSource
requestBody :: Lens' (Request m) (RequestBody m)Source
redirectCount :: Lens' (Request m) IntSource
How many redirects to follow when getting a resource. 0 means follow no redirects. Default value: 10.
checkStatus :: Lens' (Request m) (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.