twitchax / AspNetCore.Proxy

ASP.NET Core Proxies made easy.
MIT License
525 stars 83 forks source link

Edit reponse #31

Closed ElAmen closed 4 years ago

ElAmen commented 4 years ago

Is it possible to intercept and edit the proxy's response before returning it to the user?

twitchax commented 4 years ago

Yes!

Check out AfterReceive on the options.

szalapski commented 4 years ago

But I gather there's no good way to add a JSON property or two, to the response content, without deserializing, right?

twitchax commented 4 years ago

Correct, that is unavoidable in any proxy case.