79 instantiations of HttpMethod
Aspire.Dashboard.Tests (1)
AuthSamples.FunctionalTests (1)
dotnet-svcutil-lib (2)
IIS.FunctionalTests (1)
IISExpress.FunctionalTests (1)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (45)
CorsTestsBase.cs (12)
44var request = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Cors/GetBlogComments");
64var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/GetOptions");
80var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/GetOptions");
98var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/Post");
118new HttpMethod(CorsConstants.PreflightHttpMethod),
187new HttpMethod(CorsConstants.PreflightHttpMethod),
247var request = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Cors/GetExclusiveContent");
272new HttpMethod(CorsConstants.PreflightHttpMethod),
298var request = new HttpRequestMessage(new HttpMethod(CorsConstants.PreflightHttpMethod), url);
330var request = new HttpRequestMessage(new HttpMethod(CorsConstants.PreflightHttpMethod), url);
368new HttpMethod(CorsConstants.PreflightHttpMethod),
393new HttpMethod(CorsConstants.PreflightHttpMethod),
RoutingTestsBase.cs (16)
401var request = new HttpRequestMessage(new HttpMethod(method), $"http://localhost{url}");
454var request = new HttpRequestMessage(new HttpMethod(method), $"http://localhost{url}");
522var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod("POST"), url));
538var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod(method), url));
609var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod(method), url));
703var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Store/Shop/Orders");
728var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/api/Employee/5/Salary");
771var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/api/Employee");
793var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/api/Employee/Manager");
818var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/" + path);
838var message = new HttpRequestMessage(new HttpMethod("MERGE"), "http://localhost/api/Employee/5");
861var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/api/Employee/5/Administrator");
1064var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/api/Company/5");
1486var request = new HttpRequestMessage(new HttpMethod(verb), "http://localhost" + path);
1521var request = new HttpRequestMessage(new HttpMethod(verb), "http://localhost" + path);
1538var request = new HttpRequestMessage(new HttpMethod(verb), "http://localhost" + path);
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.ResponseCompression.Tests (1)
Microsoft.AspNetCore.Routing.FunctionalTests (1)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.StaticAssets.Tests (1)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.DotNet.Helix.Sdk (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Microsoft.DotNet.VersionTools (4)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
System.Net.Http (11)
1042 references to HttpMethod
Aspire.Dashboard.Tests (11)
Aspire.Hosting (1)
Aspire.Hosting.Redis (1)
CodeGenerator (9)
DaprServiceA (1)
Diagnostics.FunctionalTests (13)
dotnet-svcutil-lib (2)
GenerateRulesMissingDocumentation (1)
HttpStress (11)
Program.cs (11)
122using (var req = new HttpRequestMessage(HttpMethod.Get, serverUri + path) { Version = httpVersion })
174using (var req = new HttpRequestMessage(HttpMethod.Get, serverUri) { Version = httpVersion })
203using (var req = new HttpRequestMessage(HttpMethod.Get, serverUri + "/headers") { Version = httpVersion })
215using (var req = new HttpRequestMessage(HttpMethod.Get, serverUri) { Version = httpVersion })
243using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri) { Version = httpVersion, Content = new StringDuplexContent(content) })
257using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri + "/duplex") { Version = httpVersion, Content = new StringDuplexContent(content) })
271using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri + "/duplexSlow") { Version = httpVersion, Content = new ByteAtATimeNoLengthContent(Encoding.ASCII.GetBytes(content)) })
285using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri) { Version = httpVersion, Content = new StringContent(content) })
302using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri) { Version = httpVersion, Content = new StringContent(content) })
325using (var req = new HttpRequestMessage(HttpMethod.Head, serverUri) { Version = httpVersion })
347using (var req = new HttpRequestMessage(HttpMethod.Put, serverUri) { Version = httpVersion, Content = new StringContent(content) })
IIS.FunctionalTests (6)
IISExpress.FunctionalTests (5)
Interop.FunctionalTests (64)
Http3\Http3RequestTests.cs (39)
89var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
148var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
250var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
293var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
374var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
417var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
488var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
559var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
619var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
675var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
724var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
815var request = new HttpRequestMessage(HttpMethod.Get, address);
851var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
862var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
911var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
924var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
940var request3 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
1013var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
1110var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
1257var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
1316var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
1369var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
1422var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
1432var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
1488var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
1499var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
1541var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
1559var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
1603var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/");
1663var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/");
1719var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/");
1780var responseTask1 = client.SendAsync(CreateHttp3Request(HttpMethod.Get, $"https://127.0.0.1:{port}/1"), CancellationToken.None);
1830var response3 = await client.SendAsync(CreateHttp3Request(HttpMethod.Get, $"https://127.0.0.1:{port}/3"), CancellationToken.None);
1837private HttpRequestMessage CreateHttp3Request(HttpMethod method, string url)
1885var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/");
1962var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/");
2038var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
2138var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
2192var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
HttpClientHttp2InteropTests.cs (14)
91using var request = CreateRequestMessage(HttpMethod.Post, url, new BulkContent());
185using var request = CreateRequestMessage(HttpMethod.Post, url, new BulkContent());
298var request = CreateRequestMessage(HttpMethod.Post, url, streamingContent);
375var request = CreateRequestMessage(HttpMethod.Post, url, streamingContent);
435var request = CreateRequestMessage(HttpMethod.Post, url, streamingContent);
734var request = CreateRequestMessage(HttpMethod.Post, url, streamingContent);
791var request = CreateRequestMessage(HttpMethod.Post, url, streamingContent);
843var request = CreateRequestMessage(HttpMethod.Post, url, streamingContent);
888var request = CreateRequestMessage(HttpMethod.Post, url, streamingContent);
1056var request = CreateRequestMessage(HttpMethod.Get, url, content: null);
1165var request = CreateRequestMessage(HttpMethod.Get, url, content: null);
1364var request = CreateRequestMessage(HttpMethod.Get, url, content: null);
1566var request = CreateRequestMessage(HttpMethod.Get, url, content: null);
1696private static HttpRequestMessage CreateRequestMessage(HttpMethod method, string url, HttpContent content)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.Test (19)
Microsoft.AspNetCore.Authentication.Twitter (4)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (15)
Logging\AcceptanceTests.cs (10)
192Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString());
252Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString());
292using var request = new HttpRequestMessage(HttpMethod.Post, "/")
323Assert.Single(requestState, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString());
356using var httpMessage = new HttpRequestMessage(HttpMethod.Get, "/");
384Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
423Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Delete.ToString());
582Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
623Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Put.ToString());
657Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Put.ToString());
Microsoft.AspNetCore.Diagnostics.Tests (4)
Microsoft.AspNetCore.Http.Connections.Client (8)
Microsoft.AspNetCore.HttpLogging.Tests (11)
HttpLoggingMiddlewareTests.cs (11)
1731var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/attr_responseonly"));
1746var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/attr_responseandrequest"));
1761var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/attr_restrictedheaders"));
1776var request = new HttpRequestMessage(HttpMethod.Get, "/attr_restrictedsize") { Content = new ReadOnlyMemoryContent("from request"u8.ToArray()) };
1802var request = new HttpRequestMessage(HttpMethod.Get, "/attr_responseandrequest");
1821var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/ext_responseonly"));
1836var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/ext_responseandrequest"));
1851var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/ext_restrictedheaders"));
1866var request = new HttpRequestMessage(HttpMethod.Get, "/ext_restrictedsize") { Content = new ReadOnlyMemoryContent("from request"u8.ToArray()) };
1892var request = new HttpRequestMessage(HttpMethod.Get, "/ext_responseandrequest");
1938var request = new HttpRequestMessage(HttpMethod.Get, "/");
Microsoft.AspNetCore.HttpOverrides.Tests (6)
Microsoft.AspNetCore.HttpsPolicy.Tests (19)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Localization.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (305)
AuthMiddlewareAndFilterTestBase.cs (20)
56var request = new HttpRequestMessage(HttpMethod.Get, action);
74var request = new HttpRequestMessage(HttpMethod.Get, action);
81request = new HttpRequestMessage(HttpMethod.Get, action);
120var request = new HttpRequestMessage(HttpMethod.Get, "PagesHome");
130var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api");
136request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api");
145var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/AllowAnonymous");
149request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api");
155request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api");
164var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie");
170request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie");
179var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/AllowAnonymous");
183request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie");
189request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie");
198var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie");
204request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie");
209request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api");
216request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api");
251var request = new HttpRequestMessage(HttpMethod.Get, url);
258request = new HttpRequestMessage(HttpMethod.Get, url);
ContentNegotiationTest.cs (12)
109var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/ContentNegotiation/UserInfo_ProducesWithTypeOnly");
127HttpMethod.Get,
152HttpMethod.Get,
346var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/ContentNegotiation/UserInfo");
367var request = new HttpRequestMessage(HttpMethod.Get, "FallbackOnTypeBasedMatch/ReturnString");
385var request = new HttpRequestMessage(HttpMethod.Get, targetUri);
404var request = new HttpRequestMessage(HttpMethod.Post, targetUri);
420var request = new HttpRequestMessage(HttpMethod.Get, targetUri);
435var request = new HttpRequestMessage(HttpMethod.Get, targetUri);
450var request = new HttpRequestMessage(HttpMethod.Get, targetUri);
489var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/ProducesWithMediaTypeSuffixesController/ContactInfo");
507var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/ProducesWithMediaTypeSuffixesController/ContactInfo");
FileResultTests.cs (27)
59var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDisk");
81var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDisk");
101var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDisk");
123var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDisk_WithLastModifiedAndEtag");
145var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag");
165var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag");
227var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag");
247var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag");
279var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag");
346var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStream");
368var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStream");
388var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStream");
448var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStreamWithFileName_WithEtag");
468var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStreamWithFileName_WithEtag");
498var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/DownloadFiles/DownloadFromStreamWithFileName_WithEtag");
547var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryData");
569var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryData");
589var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryData");
652var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName_WithEtag");
672var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName_WithEtag");
704var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName_WithEtag");
760var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName");
802var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName_WithEtag");
825var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName_WithEtag");
850var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName");
873var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName");
908var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/EmbeddedFiles/DownloadFileWithFileName");
RazorPagesTest.cs (43)
101var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/HandlerTestPage");
133var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/HandlerTestPage/CustomActionResult");
214var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/ModelHandlerTestPage");
246var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/ModelHandlerTestPage/CustomActionResult");
272var routeRequest = new HttpRequestMessage(HttpMethod.Get, "http://localhost/RouteData/pizza");
285var routeRequest = new HttpRequestMessage(HttpMethod.Get, "http://localhost/RouteData/5");
301var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/PathSet");
317var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TagHelpers");
333var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/NoPage");
346var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Pages/HandlerWithParameter");
362var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorld");
378var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorldWithRoute/Some/Path/route");
394var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorldWithHandler?message=handler");
410var getRequest = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorldWithPageModelHandler?message=message");
416var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/HelloWorldWithPageModelHandler");
466var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/PageWithoutContent/No/Content/Path");
482var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/OnGetView");
499var request = new HttpRequestMessage(HttpMethod.Get, url);
508request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location);
524var request = new HttpRequestMessage(HttpMethod.Get, url);
533request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location);
549var request = new HttpRequestMessage(HttpMethod.Get, url);
558request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location);
573var getRequest = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TempData/TempDataPageModelProperty");
580var request = new HttpRequestMessage(HttpMethod.Post, url);
594request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TempData/TempDataPageModelProperty");
671var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PagePropertyBinding/10")
700var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PagePropertyBinding/27")
726var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PageModelWithPropertyBinding/10?PropertyWithSupportGetsTrue=foo")
757var request = new HttpRequestMessage(HttpMethod.Post, url)
786var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PolymorphicBinding")
811var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PolymorphicBinding")
842var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PageWithPropertyAndArgumentBinding?id=11")
867var request = new HttpRequestMessage(HttpMethod.Get, "Pages/PropertyBinding/PageWithPropertyAndArgumentBinding?id=11")
890var request = new HttpRequestMessage(HttpMethod.Head, "Pages/PropertyBinding/PageModelWithPropertyBinding/10?PropertyWithSupportGetsTrue=foo");
906var request = new HttpRequestMessage(HttpMethod.Head, "Pages/PropertyBinding/BindPropertyWithGet?value=11");
923var request = new HttpRequestMessage(HttpMethod.Get, "Pages/PropertyBinding/BindPropertyWithGet?value=11");
983var request = new HttpRequestMessage(HttpMethod.Post, "/Pages/Redirects/RedirectToSelf")
1288var request = new HttpRequestMessage(HttpMethod.Post, "/Pages/PropertyBinding/BindPropertiesOnModel?Property1=123")
1326var request = new HttpRequestMessage(HttpMethod.Post, "/Pages/PropertyBinding/BindPropertiesOnModel?Property1=123")
1455var request = new HttpRequestMessage(HttpMethod.Options, "http://localhost/HelloWorld");
1471var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorldWithOptionsHandler");
1487var request = new HttpRequestMessage(HttpMethod.Options, "http://localhost/HelloWorldWithOptionsHandler");
RoutingAcrossPipelineBranchesTest.cs (12)
42var subdirRequest = new HttpRequestMessage(HttpMethod.Get, "subdir/literal/Branches/Index/s");
43var commonRequest = new HttpRequestMessage(HttpMethod.Get, "common/Branches/Index/c/literal");
44var defaultRequest = new HttpRequestMessage(HttpMethod.Get, "Branches/literal/Index/d");
77var subdirRequest = new HttpRequestMessage(HttpMethod.Get, "subdir/literal/Branches/Index/s" + linkQuery);
78var commonRequest = new HttpRequestMessage(HttpMethod.Get, "common/Branches/Index/c/literal" + linkQuery);
79var defaultRequest = new HttpRequestMessage(HttpMethod.Get, "Branches/literal/Index/d" + linkQuery);
111var subdirRequest = new HttpRequestMessage(HttpMethod.Get, "subdir/literal/Branches/Index/s" + linkQuery + "&link_common=c&link_subdir");
112var defaultRequest = new HttpRequestMessage(HttpMethod.Get, "Branches/literal/Index/d" + linkQuery + "&link_subdir=s");
140var commonRequest = new HttpRequestMessage(HttpMethod.Get, "common/literal/Branches/Index/s");
141var subdirRequest = new HttpRequestMessage(HttpMethod.Get, "subdir/Branches/Index/c/literal");
142var defaultRequest = new HttpRequestMessage(HttpMethod.Get, "common/Branches/literal/Index/d");
163var request = new HttpRequestMessage(HttpMethod.Get, "dynamicattributeorder/dynamic/route/rest");
VersioningTestsBase.cs (18)
45var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/api/Addresses?version=" + version);
68var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/api/Addresses/All" + query);
89var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Tickets");
110var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Tickets?version=2");
129var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Tickets/5");
148var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Tickets/5?version=2");
175var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Tickets?version=" + version);
199var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Tickets");
269var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Books?version=" + version);
291var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Books?version=" + version);
395var message = new HttpRequestMessage(HttpMethod.Put, "http://localhost/Movies/5?version=2");
417var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/" + url);
438var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/" + url);
459var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/" + url);
483var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/" + url + query);
502var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/" + "Customers?version=2");
521var message = new HttpRequestMessage(HttpMethod.Delete, "http://localhost/" + "Customers/5?version=2");
543var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost" + path);
XmlOutputFormatterTests.cs (10)
41HttpMethod.Post,
63HttpMethod.Post,
86HttpMethod.Post,
107HttpMethod.Post,
130HttpMethod.Post,
151HttpMethod.Post,
169HttpMethod.Post,
189HttpMethod.Post,
209HttpMethod.Post,
230HttpMethod.Post,
Microsoft.AspNetCore.Mvc.Testing (4)
Microsoft.AspNetCore.OutputCaching.Tests (8)
Microsoft.AspNetCore.RequestDecompression.Tests (6)
Microsoft.AspNetCore.ResponseCaching.Tests (6)
Microsoft.AspNetCore.ResponseCompression.Tests (16)
ResponseCompressionMiddlewareTest.cs (16)
177var request = new HttpRequestMessage(HttpMethod.Get, "");
335var request = new HttpRequestMessage(HttpMethod.Get, "");
474var request = new HttpRequestMessage(HttpMethod.Get, "");
537var request = new HttpRequestMessage(HttpMethod.Get, "");
600var request = new HttpRequestMessage(HttpMethod.Get, "");
653var request = new HttpRequestMessage(HttpMethod.Get, "");
698var request = new HttpRequestMessage(HttpMethod.Get, "");
750var request = new HttpRequestMessage(HttpMethod.Get, "");
803var request = new HttpRequestMessage(HttpMethod.Get, "");
873var request = new HttpRequestMessage(HttpMethod.Get, "");
937var request = new HttpRequestMessage(HttpMethod.Get, "");
1001var request = new HttpRequestMessage(HttpMethod.Get, "");
1062var request = new HttpRequestMessage(HttpMethod.Get, "");
1112var request = new HttpRequestMessage(HttpMethod.Get, "");
1162var request = new HttpRequestMessage(HttpMethod.Get, "");
1212var request = new HttpRequestMessage(HttpMethod.Get, "");
Microsoft.AspNetCore.Routing.FunctionalTests (32)
MinimalFormTests.cs (13)
53var request = new HttpRequestMessage(HttpMethod.Post, "todo");
113var request = new HttpRequestMessage(HttpMethod.Post, "todo");
160var request = new HttpRequestMessage(HttpMethod.Post, "todo");
199var request = new HttpRequestMessage(HttpMethod.Post, "todo");
276var request = new HttpRequestMessage(HttpMethod.Post, "todo");
323var request = new HttpRequestMessage(HttpMethod.Post, "todo");
419var request = new HttpRequestMessage(HttpMethod.Post, "todo");
474var request = new HttpRequestMessage(HttpMethod.Post, "todo");
533var request = new HttpRequestMessage(HttpMethod.Post, "todo");
585var request = new HttpRequestMessage(HttpMethod.Post, "/todos/1");
637var request = new HttpRequestMessage(HttpMethod.Post, "/todos/1");
686var request = new HttpRequestMessage(HttpMethod.Post, "todo");
750var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Post, "/")
WebHostBuilderExtensionsTest.cs (5)
25new HttpRequestMessage(HttpMethod.Get, "greeting/James"),
37new HttpRequestMessage(HttpMethod.Post, "greeting/James") { Content = new StringContent("Biography") },
49new HttpRequestMessage(HttpMethod.Put, "greeting/James") { Content = new StringContent("Biography") },
54new HttpRequestMessage(HttpMethod.Delete, "greeting/James"),
67new HttpRequestMessage(HttpMethod.Post, "greeting/James") { Content = new StringContent("Biography") },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Microsoft.AspNetCore.Server.IISIntegration.Tests (18)
IISMiddlewareTests.cs (18)
54var req = new HttpRequestMessage(HttpMethod.Get, "");
92var req = new HttpRequestMessage(HttpMethod.Get, "");
134var request = new HttpRequestMessage(HttpMethod.Post, requestPath);
144public static TheoryData<HttpMethod> InvalidShutdownMethods
148return new TheoryData<HttpMethod>
150HttpMethod.Put,
151HttpMethod.Trace,
152HttpMethod.Head,
153HttpMethod.Get,
154HttpMethod.Delete,
155HttpMethod.Options
162public async Task MiddlewareIgnoresShutdownGivenWrongMethod(HttpMethod method)
238var request = new HttpRequestMessage(HttpMethod.Post, path);
283var request = new HttpRequestMessage(HttpMethod.Post, "/iisintegration");
383var request = new HttpRequestMessage(HttpMethod.Get, "/PathBase/Path");
424var req = new HttpRequestMessage(HttpMethod.Get, "");
481var req = new HttpRequestMessage(HttpMethod.Get, "");
526var req = new HttpRequestMessage(HttpMethod.Get, "");
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
Microsoft.AspNetCore.Shared.Tests (9)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (23)
TestHttpMessageHandler.cs (9)
123if (request.Method.Equals(HttpMethod.Delete) && request.RequestUri.PathAndQuery.Contains("id="))
151public void OnGet(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Get, pathAndQuery, handler);
152public void OnPost(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Post, pathAndQuery, handler);
153public void OnPut(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Put, pathAndQuery, handler);
154public void OnDelete(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Delete, pathAndQuery, handler);
155public void OnHead(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Head, pathAndQuery, handler);
156public void OnOptions(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Options, pathAndQuery, handler);
157public void OnTrace(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Trace, pathAndQuery, handler);
159public void OnRequest(HttpMethod method, string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.StaticAssets.Tests (26)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
Microsoft.AspNetCore.StaticFiles.Tests (49)
RangeHeaderTests.cs (24)
23var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
44var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
65var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
82var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
99var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
116var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
135var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
152var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
171var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
190var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
210var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
218req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
237var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
245req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
270var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
291var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/SingleByte.txt");
312var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/Empty.txt");
326var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
344var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
359var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
379var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
401var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
422var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
442var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
Microsoft.AspNetCore.TestHost (3)
Microsoft.AspNetCore.TestHost.Tests (17)
TestClientTests.cs (11)
196var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345");
253var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/");
304var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345");
361var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345");
423var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345");
470var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345");
521var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345");
850var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:12345");
952var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:12345");
978var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:12345");
1005var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:12345");
Microsoft.AspNetCore.WebSockets.Tests (7)
Microsoft.Build.Tasks.UnitTests (8)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Deployment.Tasks.Links (2)
Microsoft.DotNet.Git.IssueManager (1)
Microsoft.DotNet.Helix.Sdk (7)
Microsoft.DotNet.Helix.Sdk.Tests (16)
FindDotNetCliPackageTests.cs (16)
27RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/runtime-productVersion.txt"),
32RequestMessage= new HttpRequestMessage(HttpMethod.Head, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"),
37RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/runtime-productVersion.txt"),
42RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"),
75RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/runtime-productVersion.txt"),
80RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"),
125RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/runtime-productVersion.txt"),
131RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"),
178RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/runtime-productVersion.txt"),
183RequestMessage= new HttpRequestMessage(HttpMethod.Head, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"),
188RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/runtime-productVersion.txt"),
193RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"),
244RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/runtime-productVersion.txt"),
249RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"),
254RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/runtime-productVersion.txt"),
259RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"),
Microsoft.DotNet.Internal.SymbolHelper (4)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (16)
Microsoft.Extensions.Http (6)
Logging\LogHelper.cs (6)
41private static readonly Action<ILogger, HttpMethod, string?, Exception?> _requestStart = LoggerMessage.Define<HttpMethod, string?>(
57private static readonly Func<ILogger, HttpMethod, string?, IDisposable?> _beginRequestPipelineScope = LoggerMessage.DefineScope<HttpMethod, string?>("HTTP {HttpMethod} {Uri}");
59private static readonly Action<ILogger, HttpMethod, string?, Exception?> _requestPipelineStart = LoggerMessage.Define<HttpMethod, string?>(
Microsoft.Extensions.Http.Diagnostics (6)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (4)
Microsoft.Extensions.Http.Diagnostics.Tests (60)
Logging\AcceptanceTests.cs (15)
47Assert.Equal($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", logRecord.Message);
80Assert.EndsWith($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", firstLogRecord.Message);
88Assert.Equal($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", secondLogRecord.Message);
109Method = HttpMethod.Get,
164Method = HttpMethod.Get,
180Method = HttpMethod.Get,
245Method = HttpMethod.Get,
267Method = HttpMethod.Get,
310Method = HttpMethod.Get,
357Method = HttpMethod.Get,
422Method = HttpMethod.Get,
591using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, _unreachableRequestUri);
617using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, _unreachableRequestUri);
640using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, _unreachableRequestUri);
681Method = HttpMethod.Get,
Logging\HttpClientLoggerTest.cs (19)
85Method = HttpMethod.Get,
123Method = HttpMethod.Get,
173Method = HttpMethod.Post,
185Method = HttpMethod.Post,
269Method = HttpMethod.Post,
281Method = HttpMethod.Post,
374Method = HttpMethod.Post,
386Method = HttpMethod.Post,
470Method = HttpMethod.Post,
482Method = HttpMethod.Post,
585Method = HttpMethod.Post,
597Method = HttpMethod.Post,
689Method = HttpMethod.Post,
732Method = HttpMethod.Post,
770Method = HttpMethod.Post,
814Method = HttpMethod.Post,
848Method = HttpMethod.Post,
864Method = HttpMethod.Post,
959Method = HttpMethod.Post,
Logging\HttpRequestReaderTest.cs (16)
50Method = HttpMethod.Post,
82Method = HttpMethod.Post,
118Method = HttpMethod.Post,
145Method = HttpMethod.Post,
176Method = HttpMethod.Post,
208Method = HttpMethod.Post,
247Method = HttpMethod.Post,
283Method = HttpMethod.Post,
324Method = HttpMethod.Post,
355Method = HttpMethod.Post,
381Method = HttpMethod.Post,
413Method = HttpMethod.Post,
452Method = HttpMethod.Post,
484Method = HttpMethod.Post,
519Method = HttpMethod.Post,
551Method = HttpMethod.Post,
Microsoft.Extensions.Http.Polly.Tests (8)
Microsoft.Extensions.Http.Resilience (2)
Microsoft.Extensions.Http.Resilience.PerformanceTests (4)
Microsoft.Extensions.Http.Resilience.Tests (19)
Microsoft.Extensions.Logging.AzureAppServices (2)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Negotiate.Client (3)
netstandard (1)
ServerComparison.FunctionalTests (6)
SocialSample (2)
Stress.AppHost (10)
Program.cs (6)
49serviceBuilder.WithHttpCommand("/write-console", "Write to console", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning");
50serviceBuilder.WithHttpCommand("/increment-counter", "Increment counter", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning");
51serviceBuilder.WithHttpCommand("/big-trace", "Big trace", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning");
52serviceBuilder.WithHttpCommand("/trace-limit", "Trace limit", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning");
53serviceBuilder.WithHttpCommand("/log-message", "Log message", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning");
54serviceBuilder.WithHttpCommand("/log-message-limit", "Log message limit", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning");
System.Net.Http (60)
System\Net\Http\HttpClient.cs (9)
170HttpRequestMessage request = CreateRequestMessage(HttpMethod.Get, requestUri);
245HttpRequestMessage request = CreateRequestMessage(HttpMethod.Get, requestUri);
324HttpRequestMessage request = CreateRequestMessage(HttpMethod.Get, requestUri);
385SendAsync(CreateRequestMessage(HttpMethod.Get, requestUri), completionOption, cancellationToken);
398HttpRequestMessage request = CreateRequestMessage(HttpMethod.Post, requestUri);
414HttpRequestMessage request = CreateRequestMessage(HttpMethod.Put, requestUri);
430HttpRequestMessage request = CreateRequestMessage(HttpMethod.Patch, requestUri);
445SendAsync(CreateRequestMessage(HttpMethod.Delete, requestUri), cancellationToken);
820private HttpRequestMessage CreateRequestMessage(HttpMethod method, Uri? uri) =>
System\Net\Http\HttpMethod.cs (22)
9public partial class HttpMethod : IEquatable<HttpMethod>
14public static HttpMethod Get { get; } = new("GET", H3StaticTable.MethodGet);
15public static HttpMethod Put { get; } = new("PUT", H3StaticTable.MethodPut);
16public static HttpMethod Post { get; } = new("POST", H3StaticTable.MethodPost);
17public static HttpMethod Delete { get; } = new("DELETE", H3StaticTable.MethodDelete);
18public static HttpMethod Head { get; } = new("HEAD", H3StaticTable.MethodHead);
19public static HttpMethod Options { get; } = new("OPTIONS", H3StaticTable.MethodOptions);
20public static HttpMethod Trace { get; } = new("TRACE", http3StaticTableIndex: -1);
21public static HttpMethod Patch { get; } = new("PATCH", http3StaticTableIndex: -1);
25public static HttpMethod Connect { get; } = new("CONNECT", H3StaticTable.MethodConnect);
51public bool Equals([NotNullWhen(true)] HttpMethod? other) =>
56obj is HttpMethod method &&
71public static bool operator ==(HttpMethod? left, HttpMethod? right) =>
76public static bool operator !=(HttpMethod? left, HttpMethod? right) =>
79/// <summary>Parses the provided <paramref name="method"/> into an <see cref="HttpMethod"/> instance.</summary>
81/// <returns>An <see cref="HttpMethod"/> instance for the provided <paramref name="method"/>.</returns>
85/// if "get" is specified. For unknown methods, a new <see cref="HttpMethod"/> instance is returned, with the
88public static HttpMethod Parse(ReadOnlySpan<char> method) =>
92internal static HttpMethod? GetKnownMethod(ReadOnlySpan<char> method)
96HttpMethod? match = (method[0] | 0x20) switch
System.Net.Requests (4)
System.Net.WebSockets.Client (2)
Templates.Blazor.Tests (3)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)