Как установить HTTP-заголовок для запроса с помощью wreq?
1 ответ
Решение
Wreq uses lenses hence it can be done using the below:
let opts = defaults
& header "Content-Type" .~ ["application/json"]
getWith opts "http://localhost"