caching-proxy

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 10 Imported by: 0

README

caching-proxy

A small caching proxy to cache http/https requests

Installation

Dev
go build
go run . -p 3000 -origin https://example.com
User
go install github.com/Fidnix/caching-proxy

[!NOTE] Maybe tou have to check your GOBIN env variable with go env

Usage

caching-proxy --port 3000 -origin https://example.com

When execute the program, it creates a server to listen https://example.com requests behind localhost:3000

Each response returned will have a x-cache header with values: HIT, MISS; depending on if it's cached

TODO

Funcionality
  • Cache content by query params
  • Cache content by request body
  • Allow log option
  • Verify args
Project
  • Modularize project
  • Tests

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL