Skip to content

Transform or middleware for modifying response bodies #2389

Discussion options

You must be logged in to vote

Transforms are a little better because the content has to be copied from the HttpResponseMessage to the HttpResponse anyways, so inserting yourself in there isn't adding an extra step. If you can do the transformation in a streaming fashion (processing a bit at a time rather than reading the whole thing into memory) that's even better.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@socsieng
Comment options

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