1 override of QueryString
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
79public override QueryString QueryString
497 writes to QueryString
HttpAbstractions.SampleApp (1)
Program.cs (1)
18request.QueryString = new QueryString("?q1=1&q2=2");
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
293ctx.Request.QueryString = QueryString.Empty;
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
EndpointHtmlRendererTest.cs (3)
762ctx.Request.QueryString = new QueryString("?query=value"); 793ctx.Request.QueryString = new QueryString("?query=value"); 1661context.Request.QueryString = QueryString.FromUriComponent("?query=value");
Microsoft.AspNetCore.Diagnostics (2)
StatusCodePage\StatusCodePagesExtensions.cs (2)
196context.HttpContext.Request.QueryString = newQueryString; 210context.HttpContext.Request.QueryString = originalQueryString;
Microsoft.AspNetCore.Http.Connections.Tests (17)
HttpConnectionDispatcherTests.cs (17)
93context.Request.QueryString = new QueryString("?negotiateVersion=1"); 119context.Request.QueryString = new QueryString("?negotiateVersion=1"); 124context.Request.QueryString = context.Request.QueryString.Add("id", connectionToken); 156context.Request.QueryString = new QueryString("?negotiateVersion=Invalid"); 184context.Request.QueryString = new QueryString(""); 271context.Request.QueryString = new QueryString("?negotiateVersion=1"); 860context.Request.QueryString = new QueryString("?negotiateVersion=1"); 936context.Request.QueryString = new QueryString("?negotiateVersion=1"); 2035deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionToken}"); 2078deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionToken}"); 2128deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionToken}"); 2183deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionId}"); 2273context.Request.QueryString = new QueryString("?negotiateVersion=1"); 2299context.Request.QueryString = new QueryString("?negotiateVersion=1&UseStatefulReconnect=true"); 2328context.Request.QueryString = new QueryString("?negotiateVersion=1"); 2357context.Request.QueryString = new QueryString("?negotiateVersion=1&UseStatefulReconnect=true"); 2789deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionId}");
Microsoft.AspNetCore.Http.Extensions.Tests (36)
RequestDelegateGenerator\CompileTimeCreationTests.cs (2)
410httpContext.Request.QueryString = QueryString.Create("value", endpoint.DisplayName); 525httpContext.Request.QueryString = httpContext.Request.QueryString.Add(QueryString.Create(value, value));
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (19)
36httpContext.Request.QueryString = new QueryString("?p=1&p=1"); 197httpContext.Request.QueryString = new QueryString("?p=1&p=1"); 218httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 239httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 280httpContext.Request.QueryString = new QueryString("?p=&p="); 301httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 322httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 344httpContext.Request.QueryString = new QueryString("?p=a&p=b&p=c"); 387httpContext.Request.QueryString = new QueryString("?p=a&p=b&p=c"); 430httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 473httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 516httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 559httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 601httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 628httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 655httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 682httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 709httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 736httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString");
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (3)
100httpContext.Request.QueryString = new QueryString("?p="); 121httpContext.Request.QueryString = new QueryString("?p1=Hello&p2=world!"); 178httpContext.Request.QueryString = new QueryString($"?{name}=test");
RequestDelegateGenerator\RequestDelegateCreationTests.RouteParameter.cs (3)
118httpContext.Request.QueryString = new QueryString($"?value={expectedBody}"); 136httpContext.Request.QueryString = new QueryString($"?value=fromQuery"); 153httpContext.Request.QueryString = new QueryString($"?value=fromQuery");
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (7)
78httpContext.Request.QueryString = new QueryString($"?p={UrlEncoder.Default.Encode(queryStringInput)}"); 116httpContext.Request.QueryString = new QueryString($"?time={UrlEncoder.Default.Encode(queryStringInput)}"); 148httpContext.Request.QueryString = new QueryString($"?time={UrlEncoder.Default.Encode(queryStringInput)}"); 173httpContext.Request.QueryString = new QueryString("?p=1"); 196httpContext.Request.QueryString = new QueryString("?p=1"); 212httpContext.Request.QueryString = new QueryString("?p=1"); 237httpContext.Request.QueryString = new QueryString("?p=Done");
UriHelperTests.cs (2)
91request.QueryString = new QueryString("?name=val%23ue"); 106request.QueryString = new QueryString("?name=val%23ue");
Microsoft.AspNetCore.Http.Tests (4)
ApplicationBuilderTests.cs (1)
96httpContext.Request.QueryString = new QueryString("?query=true");
Internal\DefaultHttpRequestTests.cs (3)
293context.Request.QueryString = new QueryString("?query=true"); 307context.Request.QueryString = new QueryString("?test=true"); 335context.Request.QueryString = new QueryString("?test=true");
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (1)
1961httpContext.Request.QueryString = new QueryString("?foo");
W3CLoggingMiddlewareTests.cs (1)
58httpContext.Request.QueryString = new QueryString("?foo");
Microsoft.AspNetCore.Mvc.Core.Test (2)
RequireHttpsAttributeTests.cs (2)
87requestContext.Request.QueryString = new QueryString(queryString); 177requestContext.Request.QueryString = QueryString.FromUriComponent(uri);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (1)
708outputFormatterContext.HttpContext.Request.QueryString = new QueryString("?indent=" + indent);
XmlSerializerOutputFormatterTest.cs (1)
92outputFormatterContext.HttpContext.Request.QueryString = new QueryString("?indent=" + indent);
Microsoft.AspNetCore.Mvc.IntegrationTests (385)
ActionParametersIntegrationTest.cs (19)
46request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 92request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 139request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 187request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 227request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 271request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 318request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 363request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 399request.QueryString = QueryString.Create("Name", "James").Add("Property1.City", "Seattle"); 432request.QueryString = QueryString.Create("Name", "James"); 460request.QueryString = QueryString.Create("Name", "James").Add("Property1.City", "Seattle"); 552request.QueryString = QueryString.Create("Name", "James"); 585request.QueryString = QueryString.Create("Name", "James").Add("Age", "29"); 644request.QueryString = QueryString.Create(parameter.Name, "123"); 677request.QueryString = QueryString.Create(nameof(ModelWithIValidatableObject.FirstName), "TestName"); 721request.QueryString = QueryString.Create(parameter.Name, input.Value.ToString(CultureInfo.InvariantCulture)); 774request.QueryString = QueryString.Create(parameter.Name, input); 817request.QueryString = QueryString.Create(nameof(ModelWithIValidatableObject.FirstName), "Billy"); 862request.QueryString = QueryString.Create(key, "Billy");
ArrayModelBinderIntegrationTest.cs (10)
26request.QueryString = new QueryString("?parameter[0]=10&parameter[1]=11"); 70request.QueryString = new QueryString("?prefix[0]=10&prefix[1]=11"); 110request.QueryString = new QueryString("?[0]=10&[1]=11"); 150request.QueryString = new QueryString("?"); 185request.QueryString = new QueryString("?parameter[0].Name=bill&parameter[1].Name=lang"); 230request.QueryString = new QueryString("?prefix[0].Name=bill&prefix[1].Name=lang"); 271request.QueryString = new QueryString("?[0].Name=bill&[1].Name=lang"); 312request.QueryString = new QueryString("?"); 349request.QueryString = new QueryString("?parameter.Name=James&parameter.Aliases[0]=bill&parameter.Aliases[1]=william"); 390request.QueryString = new QueryString("?a=b");
BindingSourceMetadataProviderIntegrationTest.cs (1)
92request.QueryString = QueryString.Create("Name", "Fred");
BindPropertyIntegrationTest.cs (7)
38request.QueryString = new QueryString("?parameter.Name=Joey"); 65request.QueryString = new QueryString("?parameter.Name=Joey"); 92request.QueryString = new QueryString("?parameter.Name=Joey"); 117request.QueryString = new QueryString($"?{parameter.Name}=Joey"); 156request.QueryString = new QueryString($"?{parameter.Name}={input.Value}"); 212request.QueryString = new QueryString($"?{propertyDescriptor.Name}={input.Value}"); 275request.QueryString = new QueryString($"?{parameter.Name}={input}");
ByteArrayModelBinderIntegrationTest.cs (2)
40request.QueryString = QueryString.Create(queryStringKey, value); 123request.QueryString = QueryString.Create("CustomParameter", value);
CollectionModelBinderIntegrationTest.cs (20)
32request.QueryString = new QueryString("?parameter[0]=10&parameter[1]=11"); 80request.QueryString = new QueryString(queryString); 116request.QueryString = new QueryString(queryString); 148request.QueryString = new QueryString("?"); 188request.QueryString = new QueryString(queryString); 228request.QueryString = new QueryString(queryString); 261request.QueryString = new QueryString("?"); 299request.QueryString = new QueryString("?parameter[0].Id=10&parameter[1].Id=11"); 358request.QueryString = new QueryString("?prefix[0].Id=10&prefix[1].Id=11"); 409request.QueryString = new QueryString("?[0].Id=10&[1].Id=11"); 460request.QueryString = 504request.QueryString = new QueryString("?index=low&index=high&[high].Id=11&[low].Id=10"); 555request.QueryString = new QueryString("?"); 702request.QueryString = new QueryString(queryString); 987request.QueryString = new QueryString("?a=b"); 1015request.QueryString = new QueryString("?Index=0&Index=1&Index=2"); 1072request.QueryString = new QueryString("?Index=0&Index=1&Index=2&Index=3"); 1111request.QueryString = new QueryString("?Successes[0]=b"); 1139request.QueryString = new QueryString("?[0]=hello&[1]="); 1188request.QueryString = new QueryString("?[0]=hello&[1]=");
ComplexRecordIntegrationTest.cs (70)
44request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 94request.QueryString = new QueryString("?Customer.Name=bill"); 144request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 198request.QueryString = new QueryString("?parameter.Customer.Name=bill&paramater.Customer.Address=not-used"); 249request.QueryString = new QueryString("?parameter.ProductId=10"); 298request.QueryString = new QueryString("?"); 346request.QueryString = 399request.QueryString = new QueryString("?Customer.Name=bill&Customer.Token=" + ByteArrayEncoded); 451request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 503request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 556request.QueryString = new QueryString("?Customer.Name=bill"); 609request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 660request.QueryString = new QueryString("?parameter.ProductId=10"); 717request.QueryString = new QueryString("?"); 771request.QueryString = 827request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 882request.QueryString = new QueryString("?parameter.Name=bill"); 929request.QueryString = new QueryString("?"); 974request.QueryString = 1030request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 1085request.QueryString = new QueryString("?parameter.Name=bill"); 1132request.QueryString = new QueryString("?"); 1177request.QueryString = 1233request.QueryString = new QueryString("?Name=bill&ProductIds[0].Key=key0&ProductIds[0].Value=10"); 1288request.QueryString = new QueryString("?parameter.Name=bill"); 1335request.QueryString = new QueryString("?"); 1394request.QueryString = new QueryString(queryString); 1501request.QueryString = new QueryString(queryString); 1608request.QueryString = new QueryString(queryString); 1711request.QueryString = 1767request.QueryString = new QueryString("?Name=bill&ProductId.Key=key0&ProductId.Value=10"); 1831request.QueryString = new QueryString(queryString); 1916request.QueryString = new QueryString("?"); 2071request.QueryString = new QueryString("?parameter.Customer.Id=123"); 2125request.QueryString = new QueryString("?Customer.Id=123"); 2183request.QueryString = new QueryString("?customParameter.Customer.Id=123"); 2239request.QueryString = new QueryString("?"); 2291request.QueryString = new QueryString("?"); 2339request.QueryString = new QueryString("?ProductName=abc"); 2387request.QueryString = new QueryString("?"); 2439request.QueryString = new QueryString("?"); 2486request.QueryString = new QueryString("?OrderIds[0]=123"); 2536request.QueryString = new QueryString("?parameter.ProductId="); 2590request.QueryString = new QueryString("?parameter.ProductId"); 2650request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2699request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2754request => request.QueryString = new QueryString( 2809request => request.QueryString = new QueryString("?Number=23&Street=someStreet&City=Redmond&State=WA")); 2866request.QueryString = new QueryString(queryString); 2912request.QueryString = new QueryString("?Id=1&Info.Key=location1&Info.Value.Zipcode=98052"); 2981request.QueryString = new QueryString("?a=b"); 3052request.QueryString = new QueryString( 3244request.QueryString = new QueryString("?Children[0].Name=Fred&Children[1].Name=Ginger"); 3451request.QueryString = new QueryString("?"); 3493request.QueryString = new QueryString("?name=TestName"); 3536request.QueryString = new QueryString("?age=28"); 3579request.QueryString = new QueryString("?Name=test&age=28"); 3630request.QueryString = new QueryString("?Id=not-bound&Name=test"); 3676request.QueryString = new QueryString("?Id=not-bound&Name=test"); 3728request.QueryString = new QueryString("?Id=testId&Name=test"); 3771request.QueryString = new QueryString("?Name=test"); 3816request.QueryString = new QueryString("?Id=test&Tags[0]=tag1&Tags[1]=tag2"); 3859request.QueryString = new QueryString("?Id=test"); 3903request.QueryString = new QueryString("?Id=test&Tags[0]=tag1&Tags[1]=tag2"); 3948request.QueryString = new QueryString("?Id=test&Tags[0]=tag1&Tags[1]=tag2"); 3992request.QueryString = new QueryString("?"); 4033request.QueryString = new QueryString("?Tags[0]=tag"); 4076request.QueryString = new QueryString("?parameter.Tags[0]=tag"); 4121request.QueryString = new QueryString("?Name=test&Age=7"); 4166request.QueryString = new QueryString("?Age=7");
ComplexTypeIntegrationTestBase.cs (54)
81request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 131request.QueryString = new QueryString("?Customer.Name=bill"); 181request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 232request.QueryString = new QueryString("?parameter.ProductId=10"); 281request.QueryString = new QueryString("?"); 339request.QueryString = 392request.QueryString = new QueryString("?Customer.Name=bill&Customer.Token=" + ByteArrayEncoded); 444request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 506request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 559request.QueryString = new QueryString("?Customer.Name=bill"); 612request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 663request.QueryString = new QueryString("?parameter.ProductId=10"); 720request.QueryString = new QueryString("?"); 779request.QueryString = 835request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 890request.QueryString = new QueryString("?parameter.Name=bill"); 937request.QueryString = new QueryString("?"); 987request.QueryString = 1043request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 1098request.QueryString = new QueryString("?parameter.Name=bill"); 1145request.QueryString = new QueryString("?"); 1195request.QueryString = 1251request.QueryString = new QueryString("?Name=bill&ProductIds[0].Key=key0&ProductIds[0].Value=10"); 1306request.QueryString = new QueryString("?parameter.Name=bill"); 1353request.QueryString = new QueryString("?"); 1430request.QueryString = new QueryString(queryString); 1537request.QueryString = new QueryString(queryString); 1644request.QueryString = new QueryString(queryString); 1752request.QueryString = 1808request.QueryString = new QueryString("?Name=bill&ProductId.Key=key0&ProductId.Value=10"); 1863request.QueryString = new QueryString("?parameter.Name=bill"); 1912request.QueryString = new QueryString("?"); 1971request.QueryString = new QueryString(queryString); 2063request.QueryString = new QueryString("?"); 2233request.QueryString = new QueryString("?parameter.Customer.Id=123"); 2287request.QueryString = new QueryString("?Customer.Id=123"); 2345request.QueryString = new QueryString("?customParameter.Customer.Id=123"); 2405request.QueryString = new QueryString("?"); 2457request.QueryString = new QueryString("?"); 2505request.QueryString = new QueryString("?ProductName=abc"); 2557request.QueryString = new QueryString("?"); 2609request.QueryString = new QueryString("?"); 2656request.QueryString = new QueryString("?OrderIds[0]=123"); 2709request.QueryString = new QueryString("?parameter.ProductId="); 2763request.QueryString = new QueryString("?parameter.ProductId"); 2829request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2878request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2945request => request.QueryString = new QueryString( 3000request => request.QueryString = new QueryString("?Number=23&Street=someStreet&City=Redmond&State=WA")); 3059request.QueryString = new QueryString(queryString); 3116request.QueryString = new QueryString("?Id=1&Info.Key=location1&Info.Value.Zipcode=98052"); 3189request.QueryString = new QueryString("?a=b"); 3267request.QueryString = new QueryString( 3473request.QueryString = new QueryString("?Children[0].Name=Fred&Children[1].Name=Ginger");
DictionaryModelBinderIntegrationTest.cs (32)
30request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 70request.QueryString = new QueryString("?parameter[key0]=10"); 107request.QueryString = 161request.QueryString = new QueryString(queryString); 198request.QueryString = new QueryString(queryString); 284request => request.QueryString = new QueryString(impliedPrefixQueryString), 285request => request.QueryString = new QueryString(noPrefixQueryString), 286request => request.QueryString = new QueryString(reversedNoPrefixQueryString), 410request.QueryString = new QueryString("?"); 446request.QueryString = new QueryString("?"); 515request.QueryString = new QueryString(queryString); 546request => request.QueryString = new QueryString(queryString), 584request => request.QueryString = new QueryString(queryString), 619request => request.QueryString = new QueryString(queryString), 654request => request.QueryString = new QueryString(queryString), 713request.QueryString = new QueryString(queryString); 740request => request.QueryString = new QueryString(queryString), 792request.QueryString = new QueryString(queryString); 832request.QueryString = new QueryString("?"); 868request.QueryString = new QueryString("?"); 918request => request.QueryString = new QueryString(queryString)); 943request => request.QueryString = new QueryString(queryString), 977request => request.QueryString = new QueryString(queryString), 1016request => request.QueryString = new QueryString(queryString), 1055request => request.QueryString = new QueryString(queryString), 1174request.QueryString = new QueryString(queryString); 1216request.QueryString = new QueryString("?a=b"); 1244request.QueryString = new QueryString("?parameter[key0]="); 1298request.QueryString = new QueryString("?parameter[key0].Age=&parameter[key0].Name=name0&parameter[key1].Age=27&parameter[key1].Name="); 1373request.QueryString = new QueryString("?parameter[Monday]=hello&parameter[Tuesday]=world&parameter[Invalid]=exclamation"); 1409request.QueryString = new QueryString("?parameter[hello]=Monday&parameter[world]=Tuesday&parameter[exclamation]=BadEnumValue"); 1451request.QueryString = new QueryString("?parameter[key0].Age=&parameter[key0].Name=name0&parameter[key1].Age=27&parameter[key1].Name=");
FormCollectionModelBindingIntegrationTest.cs (1)
42request.QueryString = QueryString.Create("Address.Zip", "12345");
FormFileModelBindingIntegrationTest.cs (9)
42request.QueryString = QueryString.Create("Address.Zip", "12345"); 199request.QueryString = QueryString.Create("Person.Address.Zip", "98056"); 286request.QueryString = QueryString.Create("fleet.Garage.Name", "WestEnd"); 351request.QueryString = QueryString.Create("fleet.Garage.Name", "WestEnd"); 417request.QueryString = QueryString.Create("GroupName", "TestGroup"); 711request.QueryString = QueryString.Create("p.Name", "Accord"); 770request.QueryString = QueryString.Create("house.Garage.Cars[0].Name", "Accord"); 998request.QueryString = QueryString.Create("p.Name", "Accord"); 1207request.QueryString = QueryString.Create(new Dictionary<string, string>
GenericModelBinderIntegrationTest.cs (14)
34request.QueryString = new QueryString("?parameter.index=10"); 72request.QueryString = new QueryString("?index=10"); 111request.QueryString = new QueryString("?"); 194request => request.QueryString = new QueryString("?parameter.index=0")); 237request => request.QueryString = new QueryString("?parameter.index=0")); 271request.QueryString = new QueryString("?parameter[0][0].Key=key0&parameter[0][0].Value=10"); 316request.QueryString = new QueryString("?[0][0].Key=key0&[0][0].Value=10"); 361request.QueryString = new QueryString("?"); 396request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 440request.QueryString = new QueryString("?[0].Key=key0&[0].Value=10"); 484request.QueryString = new QueryString("?"); 519request.QueryString = new QueryString( 568request.QueryString = new QueryString("?[0].Key=key0&[0].Value[0]=10&[0].Value[1]=11"); 616request.QueryString = new QueryString("?");
JQueryFormatModelBindingIntegrationTest.cs (1)
27request.QueryString = new QueryString(
KeyValuePairModelBinderIntegrationTest.cs (13)
26request.QueryString = new QueryString("?parameter.Key=key0&parameter.Value=10"); 65request.QueryString = new QueryString("?parameter.Value=10"); 107request.QueryString = new QueryString("?parameter.Value=10"); 152request.QueryString = new QueryString("?parameter.Key=10"); 194request.QueryString = new QueryString("?parameter.Key=10"); 244request.QueryString = new QueryString("?prefix.Key=key0&prefix.Value=10"); 284request.QueryString = new QueryString("?Key=key0&Value=10"); 324request.QueryString = new QueryString("?"); 362request.QueryString = new QueryString("?parameter.Key=key0&parameter.Value.Id=10"); 407request.QueryString = new QueryString("?prefix.Key=key0&prefix.Value.Id=10"); 448request.QueryString = new QueryString("?Key=key0&Value.Id=10"); 489request.QueryString = new QueryString("?"); 525request.QueryString = new QueryString("?p.Key=key1&p.Value[0]=value1&p.Value[1]=value2");
ModelPrefixSelectionIntegrationTest.cs (4)
35request.QueryString = new QueryString("?parameter="); 84request.QueryString = new QueryString("?parameter="); 129request.QueryString = new QueryString("?Name="); 172request.QueryString = new QueryString("?Name=");
SimpleTypeModelBinderIntegrationTest.cs (14)
36request.QueryString = QueryString.Create("CustomParameter.Address.Zip", "1"); 80request.QueryString = QueryString.Create("Address.Zip", "1"); 125request.QueryString = QueryString.Create("Parameter1", "someValue"); 169request.QueryString = new QueryString("?=someValue"); 202request.QueryString = QueryString.Create("Parameter1", "32,000.99"); 246request.QueryString = QueryString.Create("Parameter1", "2020-02-01"); 331request.QueryString = new QueryString("?Parameter1=someValue&Parameter1=otherValue"); 375request.QueryString = QueryString.Create("Parameter1", "abcd"); 427request.QueryString = QueryString.Create("Parameter1", "abcd"); 485request.QueryString = QueryString.Create("Parameter1", ""); 530request.QueryString = QueryString.Create("Parameter1", string.Empty); 582request.QueryString = QueryString.Create("Parameter1", string.Empty); 719request.QueryString = QueryString.Create("Parameter1", "someValue"); 763request.QueryString = QueryString.Create("Parameter1", "someValue");
TryUpdateModelIntegrationTest.cs (28)
26request.QueryString = QueryString.Create("Street", "SomeStreet"); 66request.QueryString = QueryString.Create("Street", "SomeStreet"); 107request.QueryString = QueryString.Create(new Dictionary<string, string> 165request.QueryString = QueryString.Create("Address.Street", "SomeStreet"); 215request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 251request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 302request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 358request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 387request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 421request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 457request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 510request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 551request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 598request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 633request.QueryString = QueryString.Create("prefix.Street", "SomeStreet"); 673request.QueryString = QueryString.Create("prefix.Street", "SomeStreet"); 707request.QueryString = QueryString.Create(new Dictionary<string, string> 765request.QueryString = QueryString.Create("prefix.Address.Street", "SomeStreet"); 810request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 846request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 887request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 938request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 974request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 1022request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 1103request.QueryString = QueryString.Create("Street", "SomeStreet"); 1148request.QueryString = QueryString.Create("Street", "SomeStreet"); 1175request.QueryString = QueryString.Create("Address.ZipCode", "98007").Add("Address.Street", "SomeStreet"); 1221request.QueryString = QueryString.Create("Address.ZipCode", "98007").Add("Address.Street", "SomeStreet");
ValidationIntegrationTests.cs (42)
97request.QueryString = new QueryString("?accountId=30"); 139request.QueryString = new QueryString("?accountId=10"); 176request.QueryString = new QueryString("?parameter.CustomerName=bill"); 213request.QueryString = new QueryString("?"); 264request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 302request.QueryString = new QueryString("?"); 355request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 394request.QueryString = new QueryString("?parameter.Customer.Age=17"); 447request.QueryString = new QueryString("?Items[0].ItemId=17"); 486request.QueryString = new QueryString("?"); 534request.QueryString = new QueryString("?parameter[0].ProductId=17"); 572request.QueryString = new QueryString("?parameter[0].Name=bill"); 692request.QueryString = new QueryString("?parameter.Name=bill"); 729request.QueryString = new QueryString("?parameter.Name=billybob"); 780request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 817request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 857request.QueryString = new QueryString("?"); 915request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 952request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 1022request.QueryString = new QueryString("?parameter.Products[0].Name=bill"); 1059request.QueryString = new QueryString("?parameter.Products[0].Name=billybob"); 1110request.QueryString = new QueryString("?parameter[0].Name=bill"); 1147request.QueryString = new QueryString("?parameter[0].Name=billybob"); 1187request.QueryString = new QueryString("?"); 1227request.QueryString = new QueryString("?Id=bill"); 1267request.QueryString = new QueryString("?Zip=-123"); 1357request => request.QueryString 1406request => request.QueryString 1445request => request.QueryString 1509request => request.QueryString = new QueryString($"?{propertyName}=1")); 1615request => request.QueryString = new QueryString( 1735request.QueryString = 2036request.QueryString = new QueryString("?[0]=1&[1]=2"); 2088request.QueryString = new QueryString("?[0]=1&[1]=2"); 2158request.QueryString = new QueryString("?p[0].Id=1&p[1].Id=2"); 2220request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 2267request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value.NeverValidProperty=value0"); 2324request.QueryString = new QueryString("?Model.Id=12"); 2378request.QueryString = new QueryString("?Model.Id=12"); 2430request.QueryString = new QueryString("?Property1=8"); 2482request.QueryString = new QueryString("?Property1=8"); 2533request.QueryString = new QueryString("?Name=CoolName");
ValidationWithRecordIntegrationTests.cs (44)
89request.QueryString = new QueryString("?accountId=30"); 131request.QueryString = new QueryString("?accountId=10"); 164request.QueryString = new QueryString("?parameter.CustomerName=bill"); 201request.QueryString = new QueryString("?"); 245request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 283request.QueryString = new QueryString("?"); 327request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 366request.QueryString = new QueryString("?parameter.Customer.Age=17"); 412request.QueryString = new QueryString("?Items[0].ItemId=17"); 451request.QueryString = new QueryString("?"); 493request.QueryString = new QueryString("?parameter[0].ProductId=17"); 531request.QueryString = new QueryString("?parameter[0].Name=bill"); 575request.QueryString = new QueryString("?parameter.Name=bill"); 612request.QueryString = new QueryString("?parameter.Name=billybob"); 656request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 693request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 733request.QueryString = new QueryString("?"); 784request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 821request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 884request.QueryString = new QueryString("?parameter.Products[0].Name=bill"); 921request.QueryString = new QueryString("?parameter.Products[0].Name=billybob"); 968request.QueryString = new QueryString("?parameter[0].Name=bill"); 1005request.QueryString = new QueryString("?parameter[0].Name=billybob"); 1045request.QueryString = new QueryString("?"); 1079request.QueryString = new QueryString("?Id=bill"); 1119request.QueryString = new QueryString("?Zip=-123"); 1201request => request.QueryString 1250request => request.QueryString 1289request => request.QueryString 1423request => request.QueryString = new QueryString( 1538request.QueryString = 1827request.QueryString = new QueryString("?[0]=1&[1]=2"); 1879request.QueryString = new QueryString("?[0]=1&[1]=2"); 1949request.QueryString = new QueryString("?p[0].Id=1&p[1].Id=2"); 2011request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 2058request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value.NeverValidProperty=value0"); 2115request.QueryString = new QueryString("?Model.Id=12"); 2166request.QueryString = new QueryString("?Model.Id=12"); 2218request.QueryString = new QueryString("?Property1=8"); 2268request.QueryString = new QueryString("?Property1=8"); 2320request.QueryString = new QueryString("?Property1=8"); 2359request.QueryString = new QueryString("?Property1=8"); 2400request.QueryString = new QueryString("?Property1=8"); 2435request.QueryString = new QueryString("?Property1=SomeValue");
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (3)
459QueryString = new QueryString("?handler=Delete"), 510QueryString = new QueryString("?handler=Delete"), 555QueryString = new QueryString("?handler=Delete&handler=Add"),
Microsoft.AspNetCore.Mvc.TagHelpers.Test (5)
CacheTagHelperTest.cs (2)
105cacheTagHelper1.ViewContext.HttpContext.Request.QueryString = new QueryString( 127cacheTagHelper2.ViewContext.HttpContext.Request.QueryString = new QueryString(
CacheTagKeyTest.cs (1)
265cacheTagHelper.ViewContext.HttpContext.Request.QueryString =
DistributedCacheTagHelperTest.cs (2)
148cacheTagHelper1.ViewContext.HttpContext.Request.QueryString = new QueryString( 173cacheTagHelper2.ViewContext.HttpContext.Request.QueryString = new QueryString(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Rendering\HtmlHelperFormTest.cs (2)
141request.QueryString = new QueryString(queryString); 191request.QueryString = new QueryString(queryString);
Microsoft.AspNetCore.OpenApi.Tests (1)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (1)
152context.Request.QueryString = new QueryString($"?documentName={documentName}");
Microsoft.AspNetCore.OutputCaching.Tests (14)
OutputCacheAttributeTests.cs (1)
94context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB");
OutputCacheKeyProviderTests.cs (12)
25context.HttpContext.Request.QueryString = new QueryString("?query.Key=a&query.Value=b"); 42context.HttpContext.Request.QueryString = new QueryString("?query.Key=a&query.Value=b"); 183context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 196context.HttpContext.Request.QueryString = new QueryString("?queryA=ValueA&queryB=ValueB"); 209context.HttpContext.Request.QueryString = new QueryString("?queryA=ValueA"); 222context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 237context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryA=ValueB"); 252context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueB&QueryA=ValueA"); 269context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 351context.HttpContext.Request.QueryString = new QueryString($"?QueryA=ValueA{KeyDelimiter}&QueryB=ValueB"); 364context.HttpContext.Request.QueryString = new QueryString($"?QueryA{KeyDelimiter}=ValueA&QueryB=ValueB"); 377context.HttpContext.Request.QueryString = new QueryString($"?QueryA=ValueA&QueryB=ValueB{KeyDelimiter}");
OutputCachePolicyBuilderTests.cs (1)
124context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB");
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
29context.Request.QueryString = new QueryString("?key=value");
Microsoft.AspNetCore.Rewrite (8)
RewriteRule.cs (2)
66request.QueryString = query.Add(request.QueryString); 82request.QueryString = request.QueryString.Add(
UrlActions\RewriteAction.cs (6)
74request.QueryString = request.QueryString.Add(query); 78request.QueryString = query; 83request.QueryString = QueryString.Empty; 107request.QueryString = request.QueryString.Add( 113request.QueryString = QueryString.FromUriComponent( 130request.QueryString = QueryString.Empty;
Microsoft.AspNetCore.Rewrite.Tests (2)
IISUrlRewrite\ServerVariableTests.cs (1)
142context.Request.QueryString = QueryString.FromUriComponent("?bar=1");
PatternSegments\QueryStringSegmentTests.cs (1)
16context.HttpContext.Request.QueryString = new QueryString("?hey=1");
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTests.cs (1)
5093httpContext.Request.QueryString = new QueryString($"?client={client1.Connection.ConnectionId}");
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaProxyTests.cs (1)
35context.Request.QueryString = new QueryString(queryString);
Microsoft.AspNetCore.TestHost (2)
ClientHandler.cs (1)
187req.QueryString = QueryString.FromUriComponent(request.RequestUri);
WebSocketClient.cs (1)
78request.QueryString = QueryString.FromUriComponent(uri);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (1)
285context.Request.QueryString = new QueryString("?and=something");
HttpContextBuilderTests.cs (1)
27c.Request.QueryString = new QueryString("?and=query");
109 references to QueryString
Aspire.Dashboard (1)
Model\ValidateTokenMiddleware.cs (1)
50var qs = HttpUtility.ParseQueryString(context.Request.QueryString.ToString());
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
25await context.Response.WriteAsync("Query: " + context.Request.QueryString.Value + Environment.NewLine);
AzureAppServicesSample (1)
Startup.cs (1)
36await context.Response.WriteAsync("Query: " + context.Request.QueryString.Value + Environment.NewLine);
Certificate.Optional.Sample (1)
Startup.cs (1)
26request.PathBase, request.Path, request.QueryString);
CorsMiddlewareWebSite (1)
EchoMiddleware.cs (1)
28var path = context.Request.PathBase + context.Request.Path + context.Request.QueryString;
IISSample (1)
Startup.cs (1)
50await context.Response.WriteAsync("Query: " + context.Request.QueryString.Value + Environment.NewLine);
InMemory.FunctionalTests (3)
Http2\Http2StreamTests.cs (1)
361context.Response.Headers["query"] = context.Request.QueryString.Value;
Http3\Http3StreamTests.cs (1)
209context.Response.Headers["query"] = context.Request.QueryString.Value;
RequestTargetProcessingTests.cs (1)
104Assert.Empty(context.Request.QueryString.Value);
InProcessWebSite (4)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (4)
292Assert.Equal("?query", ctx.Request.QueryString.Value); 294Assert.Equal("", ctx.Request.QueryString.Value); 410await ctx.Response.WriteAsync(ctx.Request.QueryString.Value); 1072public Task Query(HttpContext ctx) => ctx.Response.WriteAsync(ctx.Request.QueryString.Value);
Microsoft.AspNetCore.Authentication (1)
AuthenticationHandler.cs (1)
106get => Request.Scheme + Uri.SchemeDelimiter + Request.Host + Request.PathBase + Request.Path + Request.QueryString;
Microsoft.AspNetCore.Authentication.Cookies (2)
CookieAuthenticationHandler.cs (2)
467returnUrl = OriginalPathBase + OriginalPath + Request.QueryString; 480redirectUri = OriginalPathBase + OriginalPath + Request.QueryString;
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
267properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString;
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
241properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString; 389properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString;
Microsoft.AspNetCore.Authentication.Test (1)
PolicyTests.cs (1)
349p.ForwardDefaultSelector = c => c.Request.QueryString.Value.Substring(1);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
168properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString;
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationHandler.cs (1)
95properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString;
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
210request.QueryString);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
25var queryParams = HttpUtility.ParseQueryString(context.Request.QueryString.Value!);
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesExtensions.cs (1)
176var originalQueryString = context.HttpContext.Request.QueryString;
Microsoft.AspNetCore.Diagnostics.Abstractions (1)
IStatusCodeReExecuteFeature.cs (1)
27/// The <see cref="HttpRequest.QueryString"/> of the original request.
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Logging\AcceptanceTests.cs (3)
63if (context.Request.QueryString.HasValue) 65if (context.Request.QueryString.Value!.Contains("status")) 70if (context.Request.QueryString.Value!.Contains("body"))
Microsoft.AspNetCore.Diagnostics.Tests (5)
StatusCodeMiddlewareTest.cs (5)
44await httpContext.Response.WriteAsync(httpContext.Request.QueryString.Value); 85var beforeNext = context.Request.QueryString; 87var afterNext = context.Request.QueryString; 108httpContext.Request.QueryString.Value 170httpContext.Request.QueryString.Value
Microsoft.AspNetCore.Hosting (7)
Internal\HostingApplicationDiagnostics.cs (1)
448[DynamicDependency(nameof(HttpRequest.QueryString), typeof(HttpRequest))]
Internal\HostingRequestFinishedLog.cs (3)
4510 => new KeyValuePair<string, object?>(nameof(request.QueryString), request.QueryString.Value), 66_cachedToString = $"Request finished {request.Protocol} {request.Method} {request.Scheme}://{request.Host.Value}{request.PathBase.Value}{request.Path.Value}{request.QueryString.Value} - {response.StatusCode.ToString(CultureInfo.InvariantCulture)} {ValueOrEmptyMarker(response.ContentLength)} {EscapedValueOrEmptyMarker(response.ContentType)} {Elapsed.TotalMilliseconds.ToString("0.0000", CultureInfo.InvariantCulture)}ms";
Internal\HostingRequestStartingLog.cs (3)
338 => new KeyValuePair<string, object?>(nameof(_request.QueryString), _request.QueryString.Value), 48_cachedToString = $"Request starting {request.Protocol} {request.Method} {request.Scheme}://{request.Host.Value}{request.PathBase.Value}{request.Path.Value}{request.QueryString.Value} - {EscapedValueOrEmptyMarker(request.ContentType)} {ValueOrEmptyMarker(request.ContentLength)}";
Microsoft.AspNetCore.Hosting.Tests (1)
Internal\HostingRequestStartLogTests.cs (1)
23mockRequest.Setup(request => request.QueryString).Returns(new QueryString("?query"));
Microsoft.AspNetCore.Http (2)
src\Shared\Debugger\HttpContextDebugFormatter.cs (2)
96!request.QueryString.HasValue) 114sb.Append(CultureInfo.InvariantCulture, $"{scheme}://{host}{request.PathBase.Value}{request.Path.Value}{(includeQueryString ? request.QueryString.Value : string.Empty)}");
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
124context.Request.QueryString = context.Request.QueryString.Add("id", connectionToken);
Microsoft.AspNetCore.Http.Extensions (3)
UriHelper.cs (3)
186return BuildAbsolute(request.Scheme, request.Host, request.PathBase, request.Path, request.QueryString); 195return BuildRelative(request.PathBase, request.Path, request.QueryString); 211var queryString = request.QueryString.Value ?? string.Empty;
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
525httpContext.Request.QueryString = httpContext.Request.QueryString.Add(QueryString.Create(value, value));
Microsoft.AspNetCore.Http.Tests (2)
Internal\DefaultHttpRequestTests.cs (2)
140Assert.Equal(QueryString.Empty, request.QueryString); 160Assert.Equal(new QueryString("?name2=value2"), request.QueryString);
Microsoft.AspNetCore.HttpLogging (8)
HttpLoggingFields.cs (5)
33/// Flag for logging the HTTP Request <see cref="HttpRequest.QueryString"/>. 149/// The HTTP Request <see cref="HttpRequest.QueryString"/> is not included with this flag as it may contain private information. 159/// The HTTP Request <see cref="HttpRequest.QueryString"/> is not included with this flag as it may contain private information. 177/// The HTTP Request <see cref="HttpRequest.QueryString"/> is not included with this flag as it may contain private information. 198/// The HTTP Request <see cref="HttpRequest.QueryString"/> is not included with this flag as it may contain private information.
HttpLoggingMiddleware.cs (2)
135logContext.AddParameter(nameof(request.QueryString), request.QueryString.Value);
W3CLoggingMiddleware.cs (1)
139shouldLog |= AddToList(elements, _uriQueryIndex, request.QueryString.Value);
Microsoft.AspNetCore.HttpsPolicy (1)
HttpsRedirectionMiddleware.cs (1)
107request.QueryString);
Microsoft.AspNetCore.Localization (1)
QueryStringRequestCultureProvider.cs (1)
32if (!request.QueryString.HasValue)
Microsoft.AspNetCore.Mvc.Core (1)
RequireHttpsAttribute.cs (1)
95request.QueryString.ToUriComponent());
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultHtmlGenerator.cs (1)
282action = request.PathBase + request.Path + request.QueryString;
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
90Assert.Equal("?key=value", context.Request.QueryString.Value);
Microsoft.AspNetCore.Rewrite (12)
PatternSegments\QueryStringSegment.cs (1)
10var queryString = context.HttpContext.Request.QueryString.ToString();
RedirectRule.cs (2)
85var resolvedQuery = request.QueryString; 90resolvedQuery = request.QueryString.Add(QueryString.FromUriComponent(newPath.Substring(querySplit)));
RedirectToHttpsRule.cs (1)
33var newUrl = UriHelper.BuildAbsolute("https", host, req.PathBase, req.Path, req.QueryString, default);
RedirectToWwwHelper.cs (1)
52request.QueryString);
RewriteRule.cs (2)
66request.QueryString = query.Add(request.QueryString); 82request.QueryString = request.QueryString.Add(
UrlActions\AbortAction.cs (1)
14context.Logger.AbortedRequest(context.HttpContext.Request.Path + context.HttpContext.Request.QueryString);
UrlActions\RedirectAction.cs (2)
59var query = context.HttpContext.Request.QueryString.Add( 76response.Headers.Location = pathBase + pattern + context.HttpContext.Request.QueryString;
UrlActions\RewriteAction.cs (2)
74request.QueryString = request.QueryString.Add(query); 107request.QueryString = request.QueryString.Add(
Microsoft.AspNetCore.Rewrite.Tests (26)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (7)
289app.Run(context => context.Response.WriteAsync(context.Request.Scheme + "://" + context.Request.Host.Host + context.Request.Path + context.Request.QueryString)); 315app.Run(context => context.Response.WriteAsync(context.Request.Scheme + "://" + context.Request.Host.Host + context.Request.Path + context.Request.QueryString)); 342app.Run(context => context.Response.WriteAsync(context.Request.Scheme + "://" + context.Request.Host.Host + context.Request.Path + context.Request.QueryString)); 370app.Run(context => context.Response.WriteAsync(context.Request.Scheme + "://" + context.Request.Host.Host + context.Request.Path + context.Request.QueryString)); 398app.Run(context => context.Response.WriteAsync(context.Request.Path + context.Request.QueryString)); 424context.Request.QueryString)); 454context.Request.QueryString));
IISUrlRewrite\MiddleWareTests.cs (7)
69app.Run(context => context.Response.WriteAsync(context.Request.Path + context.Request.QueryString)); 105app.Run(context => context.Response.WriteAsync(context.Request.Path + context.Request.QueryString)); 281context.Request.QueryString)); 318context.Request.QueryString)); 355context.Request.QueryString)); 389context.Request.QueryString)); 423context.Request.QueryString));
MiddlewareTests.cs (12)
33context.Request.QueryString)); 63context.Request.QueryString)); 95context.Request.QueryString)); 127context.Request.QueryString)); 688context.Request.QueryString)); 715context.Request.QueryString)); 865context.Request.QueryString)); 903context.Request.QueryString)); 939context.Request.QueryString)); 976context.Request.QueryString)); 1013context.Request.QueryString)); 1046context.Request.QueryString));
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
74+ context.Request.QueryString);
Microsoft.AspNetCore.StaticFiles (1)
Helpers.cs (1)
45var redirect = UriHelper.BuildAbsolute(request.Scheme, request.Host, request.PathBase, request.Path + "/", request.QueryString);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (1)
55Assert.Equal("?and=query", context.Request.QueryString.Value);
HttpContextBuilderTests.cs (1)
37Assert.Equal("?and=query", context.Request.QueryString.Value);
NativeIISSample (1)
Startup.cs (1)
44await context.Response.WriteAsync("Query: " + context.Request.QueryString.Value + Environment.NewLine);
RewriteSample (1)
Startup.cs (1)
36return context.Response.WriteAsync($"Rewritten Url: {context.Request.Path + context.Request.QueryString}");
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
158url += context.Request.QueryString.ToString();