20 references to FromUriComponent
BasicWebSite (1)
Controllers\RazorComponentsController.cs (1)
56PathString.FromUriComponent("/components/routable") : Request.Path;
Microsoft.AspNetCore.Http.Abstractions (1)
PathString.cs (1)
509=> string.IsNullOrEmpty(s) ? new PathString(s) : FromUriComponent(s);
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
PathStringBenchmark.cs (1)
22var pathString = PathString.FromUriComponent(testPath);
Microsoft.AspNetCore.Http.Abstractions.Tests (5)
PathStringTests.cs (5)
320var sut = PathString.FromUriComponent(input); 342var sut = PathString.FromUriComponent(input); 368var sut = PathString.FromUriComponent(input); 377var sut = PathString.FromUriComponent(input); 389var sut = PathString.FromUriComponent(path + testString);
Microsoft.AspNetCore.Http.Extensions (1)
UriHelper.cs (1)
146path = PathString.FromUriComponent(uri.Substring(searchIndex, limit - searchIndex));
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
383request.PathBase = PathString.FromUriComponent(currentValues.Prefix);
Microsoft.AspNetCore.Rewrite (8)
RewriteRule.cs (4)
76request.Path = PathString.FromUriComponent(newPath); 80request.Path = PathString.FromUriComponent('/' + newPath); 90request.Path = PathString.FromUriComponent(result); 94request.Path = PathString.FromUriComponent('/' + result);
UrlActions\RewriteAction.cs (4)
98request.Path = PathString.FromUriComponent(path); 102request.Path = PathString.FromUriComponent('/' + path); 121request.Path = PathString.FromUriComponent(pattern); 125request.Path = PathString.FromUriComponent('/' + pattern);
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\ServerVariableTests.cs (1)
141context.Request.Path = PathString.FromUriComponent("/foo");
Microsoft.AspNetCore.Routing.Tests (1)
DefaultLinkGeneratorProcessTemplateTest.cs (1)
370Assert.Equal("/home/п", PathString.FromUriComponent(result.path.ToUriComponent()).Value);