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

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.