Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看到有一个可能的函数可以getWith传递一个Option值。
getWith
Option
然而,查找Option类型似乎在黑线鳕中显示的信息很少:
我该如何设置这些?
wreq 使用镜头,因此可以使用以下方法完成:
let opts = defaults & header "Content-Type" .~ ["application/json"] getWith opts "http://localhost"