Kong / unirest-ruby

Unirest in Ruby: Simplified, lightweight HTTP client library.
http://unirest.io/ruby
MIT License
364 stars 83 forks source link

Caching? #6

Closed napster3000 closed 10 years ago

napster3000 commented 10 years ago

Is there a way to cache web request setting expiration manually?

napster3000 commented 10 years ago

Up

Any workaround?

napster3000 commented 10 years ago

Up

Any workaround?

subnetmarco commented 10 years ago

Hi @napster3000 , there are no plans to implement a caching layer at this time, but you can easily implement your own by reading the bodies of the responses and storing them. Or by installing a reverse proxy that will forward the requests to their final destination.