Skip to content

almet/httpcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A simple HTTP proxy to handle cache

A web application that proxies HTTP requests to another HTTP server, caching the results if asked to.

To start the cache on port 9201 with a cache expiring every 2 seconds, type:

$ httpcache --local localhost:9201 --distant localhost:9200 --cache localhost:11211 --cache-timeout 2

Specify the backend

You can also use a different backend if that makes sense for you. You can use one of the backends exposed by chaussette. The default backend is "fastgevent"; you may want to disable this if you want to use the streaming feature of your proxied server.

Using statsd

You can send information to a statsd server each time a request is proxied, if it hits the proxied server or if it hits the cache:

$ httpcache --statsd localhost:8125

Install

To install httpcache, do so using pip:

$ pip install httpcache

About

A simple HTTP proxy caching responses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages