[Haskell-cafe] Wreq: use basic auth and also change the response timeout

Carlo Hamalainen carlo at carlo-hamalainen.net
Mon Oct 6 12:34:06 UTC 2014


On 06/10/14 09:59, Carlo Hamalainen wrote:
> opts = defaults & manager .~ Left (defaultManagerSettings {
> managerResponseTimeout = Just 3000000000 } )
>                          & auth .~ basicAuth "user" "pass"
>
> Perhaps I'm not using the lens onto the manager correctly?

Sorry for the noise, the code I wrote above does work, I was running
into problems due to my own configuration of a number of different
development environments :-/

--
Carlo Hamalainen
http://carlo-hamalainen.net




More information about the Haskell-Cafe mailing list