[英]Mock a Wreq Response
我想手動創建一個Response來模擬一個Web服務器,類似於這篇博文。 但是,我正在使用的Network.Wreq庫沒有顯示Response的構造函數。 如何手動創建Response ?
Response
Network.Wreq
查看wreq 的來源顯示Response類型來自http-client庫。 這是您鏈接到的博客文章使用的相同庫,因此解決方案與推文中使用的解決方案相同:import Network.HTTP.Client.Internal ,它導出構造函數 。
Network.HTTP.Client.Internal
[英]Printing a wreq response to the terminal
[英]How to use wreq to download only part of response?
[英]Extract responseStatus from Response using Network.Wreq
[英]Sending data (not form) in wreq
[英]Check wreq request headers
[英]wreq not compiling with cabal sandbox
[英]haskell wreq param list
[英]Error attempting to decode with wreq
[英]How to send a PUT request with wreq?
[英]`wreq` Get / Post with exception handling
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.