forwarder icon indicating copy to clipboard operation
forwarder copied to clipboard

Allow custom request / response modifications

Open mmatczuk opened this issue 2 years ago • 0 comments

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 avatar Dec 01 '23 10:12 mmatczuk