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