libjenkins-0.1.0.0: Jenkins API interface

Safe HaskellNone

Jenkins.REST.Lens

Contents

Description

Lenses for Conduit types

Synopsis

Request lenses

method :: Lens' (Request m) MethodSource

HTTP request method, eg GET, POST.

secure :: Lens' (Request m) BoolSource

Whether to use HTTPS (ie, SSL).

path :: Lens' (Request m) ByteStringSource

Everything from the host to the query string.

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.

responseTimeout :: Lens' (Request m) (Maybe Int)Source

Number of microseconds to wait for a response. If Nothing, will wait indefinitely. Default: 5 seconds.