1

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: enter image description here

How can I set these?

Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286

1 Answers1

1

wreq uses lenses hence it can be done using the below:

let opts = defaults
           & header "Content-Type" .~ ["application/json"]
getWith opts "http://localhost"

Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286