Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom request / response modifications #584

Open
mmatczuk opened this issue Dec 1, 2023 · 0 comments
Open

Allow custom request / response modifications #584

mmatczuk opened this issue Dec 1, 2023 · 0 comments
Milestone

Comments

@mmatczuk
Copy link
Contributor

mmatczuk commented Dec 1, 2023

Proposal:

User provides a JS file that contains one or more of functions

  • ModifyRequest
  • ModifyResponse
  • ModifyProxyRequest
  • ModifyProxyResponse

We add that to proxy as a Modifier.

Goja provides good interoperability between JS and Go, see ToVelue.
Maybe we could raw htp.Request pointer but this needs more thought.

@mmatczuk mmatczuk added this to the v1.3 milestone Dec 1, 2023
@Choraden Choraden modified the milestones: v1.3, v1.4 Apr 26, 2024
@mmatczuk mmatczuk modified the milestones: v1.4, v1.5 Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants