superfly / edge

A set of useful libraries for Edge Apps. Run locally, write tests, and integrate it into your deployment process. Move fast and maybe don't break things? Because, gosh darnit, you're an adult.
https://fly.io
Apache License 2.0
142 stars 10 forks source link

Flexible `x-forwarded-for` handlers in proxy function #8

Open mrkurt opened 5 years ago

mrkurt commented 5 years ago

The proxy function currently sets the x-forwarded-for header to the remoteAddr before sending a request to an origin. It would be better if it had options to: