58 references to Path
Microsoft.AspNetCore.Rewrite (3)
IISUrlRewrite\InputParser.cs (1)
35return ParseInputString(testString, UriMatchPart.Path);
IISUrlRewrite\UrlRewriteRuleBuilder.cs (1)
16public UriMatchPart UriMatchPart => Global ? UriMatchPart.Full : UriMatchPart.Path;
PatternSegments\UrlSegment.cs (1)
14: this(UriMatchPart.Path)
Microsoft.AspNetCore.Rewrite.Tests (55)
IISUrlRewrite\FileParserTests.cs (1)
184UriMatchPart uriMatchPart = UriMatchPart.Path,
IISUrlRewrite\InputParserTests.cs (11)
20var result = new InputParser().ParseInputString(testString, UriMatchPart.Path); 32var result = new InputParser().ParseInputString(testString, UriMatchPart.Path); 48var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 61var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 71var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 80var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 98var middle = new InputParser().ParseInputString(testString, UriMatchPart.Path); 118Assert.Throws<FormatException>(() => new InputParser().ParseInputString(testString, UriMatchPart.Path)); 124Assert.Throws<FormatException>(() => new InputParser(null, false).ParseInputString("{apiMap:{R:1}}", UriMatchPart.Path)); 134Assert.Throws<FormatException>(() => new InputParser(maps, false).ParseInputString($"{{{undefinedMapName}:{{R:1}}}}", UriMatchPart.Path)); 148var pattern = new InputParser(maps, false).ParseInputString(inputString, UriMatchPart.Path);
IISUrlRewrite\MiddleWareTests.cs (1)
701[InlineData(@"^http://localhost(/.*)", "http://localhost/foo/bar", (int)UriMatchPart.Path)]
IISUrlRewrite\ServerVariableTests.cs (37)
14[InlineData("CONTENT_LENGTH", "10", (int)UriMatchPart.Path)] 15[InlineData("CONTENT_TYPE", "json", (int)UriMatchPart.Path)] 16[InlineData("HTTP_ACCEPT", "accept", (int)UriMatchPart.Path)] 17[InlineData("HTTP_COOKIE", "cookie", (int)UriMatchPart.Path)] 18[InlineData("HTTP_HOST", "example.com", (int)UriMatchPart.Path)] 19[InlineData("HTTP_REFERER", "referer", (int)UriMatchPart.Path)] 20[InlineData("HTTP_USER_AGENT", "useragent", (int)UriMatchPart.Path)] 21[InlineData("HTTP_CONNECTION", "connection", (int)UriMatchPart.Path)] 22[InlineData("HTTP_URL", "/foo", (int)UriMatchPart.Path)] 24[InlineData("QUERY_STRING", "bar=1", (int)UriMatchPart.Path)] 25[InlineData("REQUEST_FILENAME", "/foo", (int)UriMatchPart.Path)] 26[InlineData("REQUEST_URI", "/foo", (int)UriMatchPart.Path)] 41[InlineData("CONTENT_LENGTH", "20", (int)UriMatchPart.Path)] 42[InlineData("CONTENT_TYPE", "text/xml", (int)UriMatchPart.Path)] 43[InlineData("HTTP_ACCEPT", "other-accept", (int)UriMatchPart.Path)] 44[InlineData("HTTP_COOKIE", "other-cookie", (int)UriMatchPart.Path)] 45[InlineData("HTTP_HOST", "otherexample.com", (int)UriMatchPart.Path)] 46[InlineData("HTTP_REFERER", "other-referer", (int)UriMatchPart.Path)] 47[InlineData("HTTP_USER_AGENT", "other-useragent", (int)UriMatchPart.Path)] 48[InlineData("HTTP_CONNECTION", "other-connection", (int)UriMatchPart.Path)] 50[InlineData("HTTP_URL", "http://otherexample.com/other-foo?bar=2", (int)UriMatchPart.Path)] 51[InlineData("QUERY_STRING", "bar=2", (int)UriMatchPart.Path)] 52[InlineData("REQUEST_FILENAME", "/other-foo", (int)UriMatchPart.Path)] 53[InlineData("REQUEST_URI", "/other-foo", (int)UriMatchPart.Path)] 89[InlineData("CONTENT_LENGTH", "10", (int)UriMatchPart.Path)] 90[InlineData("CONTENT_TYPE", "json", (int)UriMatchPart.Path)] 91[InlineData("HTTP_ACCEPT", "accept", (int)UriMatchPart.Path)] 92[InlineData("HTTP_COOKIE", "cookie", (int)UriMatchPart.Path)] 93[InlineData("HTTP_HOST", "example.com", (int)UriMatchPart.Path)] 94[InlineData("HTTP_REFERER", "referer", (int)UriMatchPart.Path)] 95[InlineData("HTTP_USER_AGENT", "useragent", (int)UriMatchPart.Path)] 96[InlineData("HTTP_CONNECTION", "connection", (int)UriMatchPart.Path)] 97[InlineData("HTTP_URL", "/foo", (int)UriMatchPart.Path)] 99[InlineData("QUERY_STRING", "bar=1", (int)UriMatchPart.Path)] 100[InlineData("REQUEST_FILENAME", "/foo", (int)UriMatchPart.Path)] 101[InlineData("REQUEST_URI", "/foo", (int)UriMatchPart.Path)] 177var serverVar = ServerVariables.FindServerVariable("QUERY_STRING", testParserContext, UriMatchPart.Path, true);
PatternSegments\UrlSegmentTests.cs (5)
13[InlineData("http", "localhost", 80, null, (int)UriMatchPart.Path, "")] 14[InlineData("http", "localhost", 80, "", (int)UriMatchPart.Path, "")] 15[InlineData("http", "localhost", 80, "/foo/bar", (int)UriMatchPart.Path, "/foo/bar")] 16[InlineData("http", "localhost", 80, "/foo:bar", (int)UriMatchPart.Path, "/foo:bar")] 17[InlineData("http", "localhost", 80, "/foo bar", (int)UriMatchPart.Path, "/foo%20bar")]