Is there a Ruby http client library with a response cache?

↘锁芯ラ 提交于 2019-12-03 11:31:30

问题


Is there a Ruby http client library where responses are automatically cached by ETag and the If-Non-Match header applied to requests on previously used URLs?


回答1:


You might want to check the list of "Ruby HTTP clients features" (archived version from January 2015) for a complete overview.




回答2:


Take a look at Faraday-HTTP-Cache.




回答3:


rufus-jig supports conditional GET.



来源:https://stackoverflow.com/questions/6104922/is-there-a-ruby-http-client-library-with-a-response-cache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!