Skip to content

Intercept and manipulate proxy request #447

Discussion options

You must be logged in to vote

Response body manipulation is something we do not plan first class support for, but it is possible through middleware.

The ResponseCompressionMiddleware is the closest example I have for conditionally intercepting and altering the response. Note it avoids buffering the response to limit latency, but it might be simpler for you to buffer the response for specific urls, parse, edit, and resend.
https://github.com/dotnet/aspnetcore/blob/master/src/Middleware/ResponseCompression/src/ResponseCompressionMiddleware.cs

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@sureshkumarramu
Comment options

@sureshkumarramu
Comment options

@Tratcher
Comment options

@sureshkumarramu
Comment options

@Tratcher
Comment options

Answer selected by sureshkumarramu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants