17 references to AddRewrite
Microsoft.AspNetCore.Rewrite.Tests (16)
MiddlewareTests.cs (16)
19var options = new RewriteOptions().AddRewrite("(.*)", "http://example.com/$1", skipRemainingRules: false);
49var options = new RewriteOptions().AddRewrite("(.*)", "http://example.com/$1", skipRemainingRules: true);
80.AddRewrite("(.*)", "http://example.com/$1", skipRemainingRules: true)
81.AddRewrite("(.*)", "http://example.com/42", skipRemainingRules: false);
112.AddRewrite("(.*)", "http://example.com/$1s", skipRemainingRules: false)
113.AddRewrite("(.*)", "http://example.com/$1/42", skipRemainingRules: false);
642var options = new RewriteOptions().AddRewrite("(.*)", "$1s", skipRemainingRules: false);
677var options = new RewriteOptions().AddRewrite("(.*)", "$1", skipRemainingRules: false);
846var options = new RewriteOptions().AddRewrite(regex, "http://example.com/g", skipRemainingRules: false);
886options.AddRewrite(regex, "http://example.com/g", skipRemainingRules: false);
922options.AddRewrite("(.*)", "http://example.com/g", skipRemainingRules: true);
958options.AddRewrite("(.*)", "http://example.com/g", skipRemainingRules: false)
959.AddRewrite("(.*)", "http://example.com/$1/h", skipRemainingRules: false);
995options.AddRewrite("(.*)", "http://example.com/g", skipRemainingRules: true)
996.AddRewrite("(.*)", "http://example.com/$1/h", skipRemainingRules: false);
1032options.AddRewrite("(.*)", "http://example.com/g", skipRemainingRules: true);
RewriteSample (1)