go-proxy/examples/basic_rewrite
wpetit 6854557831 feat: initial commit 2023-04-24 19:57:05 +02:00
..
README.md feat: initial commit 2023-04-24 19:57:05 +02:00
main.go feat: initial commit 2023-04-24 19:57:05 +02:00

README.md

Example: Basic rewriting

This example use the WithRewriteHosts() middleware to rewrite incoming requests based on static host matching rules.

How to run

Run with go run ./examples/basic_rewrite then open your browser on theses 2 URLs:

You'll see that the two URLs are targeting two differents remote servers.