Skip to content

Ability to transform proxied content #5

@simonw

Description

@simonw

Right now this proxy isn't useful for anything other than forwarding traffic to somewhere else.

Including patterns for transforming proxied content would be really useful.

Some transformations that I would want to support:

  • Manipulating headers in some way (adding and removing HTTP headers sent to and retrieved from the proxied backend)
  • Content transformations on the body

A challenge with content transformations is that they are harder to implement in a streaming fashion - often they'll need to accumulate the entire response body before being applied. Supporting a neat pattern for optionally doing that would be useful too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions