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