dotnet / dotnet/aspnetcore

Add support for outbound rules in rewrite middleware

Open
#5,986 6 comments 0 reactions 0 assignees View on GitHub
affected-few area-middleware enhancement feature-rewrite-middleware severity-major
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

As an extension on my implementation of UrlRewrite, Outbound rules will look through an Http response for any regex match, and replace them appropriately.
Documentation here:
http://www.iis.net/learn/extensions/url-rewrite-module/creating-outbound-rules-for-url-rewrite-module
http://www.iis.net/learn/extensions/url-rewrite-module/url-rewrite-module-20-configuration-reference

The big problem here will be perf, as we are going to regex match on the whole body of the response.

This would probably be an extension on top of the rewriter.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.