I see there is a likely function to do this of getWith
which passes an Option
value.
However looking up Option
type seems to show something with very little info in haddock:
How can I set these?
I see there is a likely function to do this of getWith
which passes an Option
value.
However looking up Option
type seems to show something with very little info in haddock:
How can I set these?
wreq uses lenses hence it can be done using the below:
let opts = defaults
& header "Content-Type" .~ ["application/json"]
getWith opts "http://localhost"