Skip to content

moutoum/http-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Reverse Proxy

This project is a small http reverse proxy written in Golang. The goal is to learn and implement a http server proxy that embeds a cache feature.

This server is very primitive and does not implements the full-featured behavior for proxies and caching mechanisms.

Proxy server

This repo provides a cli binary that runs the proxy server with the cache. Several options are available.

Build

go build ./cmd/proxy-server/proxy-server.go

Help

./proxy-server --help

Run

./proxy-server --target-server "http://localhost:5051" --bind-addr ":5050"

Features

  • Can proxy not secure http requests to a http server.
  • Cache all GET and HEAD requests.
  • Several `Cache-Control" options (max-age, min-fresh, public, max-stale, ...)

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages