I see there is a likely function to do this of getWith which passes an Option value.
getWith
Option
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"
Copyright © 2021 Jogjafile Inc.
wreq uses lenses hence it can be done using the below: