51 references to ToUriComponent
Microsoft.AspNetCore.Http.Abstractions (2)
PathString.cs (1)
375
return ToUriComponent() + other.
ToUriComponent
();
QueryString.cs (1)
56
return
ToUriComponent
();
Microsoft.AspNetCore.Http.Extensions (1)
UriHelper.cs (1)
64
var queryText = query.
ToUriComponent
();
Microsoft.AspNetCore.Mvc.Core (1)
RequireHttpsAttribute.cs (1)
95
request.QueryString.
ToUriComponent
());
Microsoft.AspNetCore.Routing.Tests (47)
DefaultLinkGeneratorProcessTemplateTest.cs (47)
34
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
59
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
91
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
114
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
137
Assert.Equal("?name=name%20with%20%25special%20%23characters", result.query.
ToUriComponent
());
160
Assert.Equal("?color=red&color=green&color=blue", result.query.
ToUriComponent
());
183
Assert.Equal("?items=10&items=20&items=30", result.query.
ToUriComponent
());
206
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
229
Assert.Equal("?page=1&color=red&color=green&color=blue&message=textfortest", result.query.
ToUriComponent
());
252
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
280
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
309
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
333
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
365
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
404
Assert.Equal("?showstatus=true&info=detailed", result.query.
ToUriComponent
());
434
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
469
Assert.Equal("?showstatus=true&info=detailed", result.query.
ToUriComponent
());
502
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
535
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
573
Assert.Equal("?ShowStatus=True&INFO=DETAILED", result.query.
ToUriComponent
());
611
Assert.Equal("?showstatus=true&info=detailed", result.query.
ToUriComponent
());
641
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
691
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
741
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
778
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
812
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
845
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
877
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
911
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
941
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
993
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1019
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1071
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1124
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1147
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1170
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1195
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1220
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1243
Assert.Equal("?format=json", result.query.
ToUriComponent
());
1267
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1289
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1312
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1335
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1358
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1381
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1485
Assert.Equal(string.Empty, result.query.
ToUriComponent
());
1513
Assert.Equal(string.Empty, result.query.
ToUriComponent
());