60 references to ToUriComponent
HotAddSample (3)
Startup.cs (3)
54await context.Response.WriteAsync("<br><a href=\"" + context.Request.PathBase.ToUriComponent() + "\">back</a>"); 78await context.Response.WriteAsync("<br><a href=\"" + context.Request.PathBase.ToUriComponent() + "\">back</a>"); 95await context.Response.WriteAsync("<form action=\"" + context.Request.PathBase.ToUriComponent() + "\" method=\"GET\">");
Microsoft.AspNetCore.Http.Abstractions (2)
PathString.cs (2)
66return ToUriComponent(); 375return ToUriComponent() + other.ToUriComponent();
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
PathStringTests.cs (2)
286Assert.Equal(expected, path.ToUriComponent()); 369Assert.Equal(input, sut.ToUriComponent());
Microsoft.AspNetCore.Http.Extensions (2)
UriHelper.cs (2)
62var pathBaseText = pathBase.ToUriComponent(); 63var pathText = path.ToUriComponent();
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
134shouldLog |= AddToList(elements, _uriStemIndex, (request.PathBase + request.Path).ToUriComponent());
Microsoft.AspNetCore.Mvc.Core (2)
RequireHttpsAttribute.cs (2)
93request.PathBase.ToUriComponent(), 94request.Path.ToUriComponent(),
Microsoft.AspNetCore.Routing.Tests (48)
DefaultLinkGeneratorProcessTemplateTest.cs (48)
33Assert.Equal("/Home/a%20b/bar", result.path.ToUriComponent()); 58Assert.Equal(expected, result.path.ToUriComponent()); 90Assert.Equal(expected, result.path.ToUriComponent()); 113Assert.Equal("/Home/Index/a/b%20b1/c%20c1", result.path.ToUriComponent()); 136Assert.Equal("/Home/Index", result.path.ToUriComponent()); 159Assert.Equal("/Home/Index", result.path.ToUriComponent()); 182Assert.Equal("/Home/Index", result.path.ToUriComponent()); 205Assert.Equal("/Home/Index", result.path.ToUriComponent()); 228Assert.Equal("/Home/Index", result.path.ToUriComponent()); 251Assert.Equal("/Home/Index", result.path.ToUriComponent()); 279Assert.Equal("/home/index", result.path.ToUriComponent()); 308Assert.Equal("/foo/bar/18", result.path.ToUriComponent()); 332Assert.Equal("/Foo/my-bar/18", result.path.ToUriComponent()); 364Assert.Equal("/home/%D0%BF", result.path.ToUriComponent()); 370Assert.Equal("/home/п", PathString.FromUriComponent(result.path.ToUriComponent()).Value); 403Assert.Equal("/home/index", result.path.ToUriComponent()); 433Assert.Equal("/Home/Index/", result.path.ToUriComponent()); 468Assert.Equal("/home/index/", result.path.ToUriComponent()); 501Assert.Equal("/HoMe/InDex", result.path.ToUriComponent()); 534Assert.Equal("/home/index", result.path.ToUriComponent()); 572Assert.Equal("/Home/Index", result.path.ToUriComponent()); 610Assert.Equal("/home/index", result.path.ToUriComponent()); 640Assert.Equal("/Home/Index/", result.path.ToUriComponent()); 690Assert.Equal("/hello/1234", result.path.ToUriComponent()); 740Assert.Equal("/hello/1234", result.path.ToUriComponent()); 777Assert.Equal("/hello/1234", result.path.ToUriComponent()); 811Assert.Equal("/slug/Home/Store", result.path.ToUriComponent()); 844Assert.Equal("/slug/Home/Store", result.path.ToUriComponent()); 876Assert.Equal("/slug/Shopping", result.path.ToUriComponent()); 910Assert.Equal("/slug/Home/Store", result.path.ToUriComponent()); 940Assert.Equal("/Home/Index/4", result.path.ToUriComponent()); 992Assert.Equal("/Home/Index/98", result.path.ToUriComponent()); 1018Assert.Equal("/Home/Index", result.path.ToUriComponent()); 1070Assert.Equal("/Home/Index/14", result.path.ToUriComponent()); 1123Assert.Equal("/Home/Index/products", result.path.ToUriComponent()); 1146Assert.Equal("/Home/Index/products", result.path.ToUriComponent()); 1169Assert.Equal("/Home/Index", result.path.ToUriComponent()); 1194Assert.Equal("/Home/Index/products", result.path.ToUriComponent()); 1219Assert.Equal("/Home/Index", result.path.ToUriComponent()); 1242Assert.Equal("/Home/Index/products", result.path.ToUriComponent()); 1266Assert.Equal("/Home/Index/.products", result.path.ToUriComponent()); 1288Assert.Equal("/Home/Index/", result.path.ToUriComponent()); 1311Assert.Equal("/Home/Index", result.path.ToUriComponent()); 1334Assert.Equal("/a/15/17", result.path.ToUriComponent()); 1357Assert.Equal("/a/15/17", result.path.ToUriComponent()); 1380Assert.Equal("/a", result.path.ToUriComponent()); 1484Assert.Equal("/Products/Edit/10", result.path.ToUriComponent()); 1512Assert.Equal("/Products/Edit/10", result.path.ToUriComponent());