#http-proxy #proxy #cache #http

app fopro

Experimental caching HTTP forward proxy (memory+disk)

10 stable releases

2.0.3 Oct 13, 2024
1.0.5 Oct 13, 2024
1.0.1 Oct 12, 2024

#98 in Network programming

Download history 490/week @ 2024-10-09 85/week @ 2024-10-16

205 downloads per month

Apache-2.0 OR MIT

34KB
713 lines

license: MIT/Apache-2.0 crates.io docs.rs

fopro

An proof-of-concept(TM) caching HTTP forward proxy

Limitations

  • Very naive rules to decide if something is cachable (see sources) specifically, fopro DOES NOT RESPECT cache-control, vary, ETC.
  • The cache is boundless (both in memory and on disk)
  • Responses are buffered in memory completely before being proxied (instead of being streamed)
  • Partial responses (HTTP 206) are not cached at all.
  • Really you shouldn't use fopro, it currently does the bare minimum to get most of the uv test suite passing.

Features

  • Supports CONNECT requests
  • Caches 200 responses in memory and on-disk

Dependencies

~23–36MB
~644K SLoC