265 references to Post
Aspire.Dashboard.Tests (2)
Integration\OtlpHttpServiceTests.cs (2)
140var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/logs"); 168var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/logs");
CodeGenerator (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
18[HttpMethod.Post] = 20,
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
594var requestMessage = new HttpRequestMessage(HttpMethod.Post, httpRequestUri);
HttpStress (5)
Program.cs (5)
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) })
Interop.FunctionalTests (21)
Http3\Http3RequestTests.cs (12)
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()}/"); 724var request = new HttpRequestMessage(HttpMethod.Post, $"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()}/"); 1369var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 2033var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 2129var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/");
HttpClientHttp2InteropTests.cs (9)
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);
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
218var requestMessage = new HttpRequestMessage(HttpMethod.Post, Options.TokenEndpoint);
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
596var requestMessage = new HttpRequestMessage(HttpMethod.Post, parEndpoint); 991var requestMessage = new HttpRequestMessage(HttpMethod.Post, tokenEndpointRequest.TokenEndpoint ?? _configuration?.TokenEndpoint);
Microsoft.AspNetCore.Authentication.Test (5)
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (1)
58var request = new HttpRequestMessage(HttpMethod.Post, "/");
WsFederation\WsFederationTest.cs (2)
126var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 177var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]);
WsFederation\WsFederationTest_Handler.cs (2)
124var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 175var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]);
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterHandler.cs (2)
273var response = await ExecuteRequestAsync(TwitterDefaults.RequestTokenEndpoint, HttpMethod.Post, extraOAuthPairs: new Dictionary<string, string>() { { "oauth_callback", callBackUri } }); 299var response = await ExecuteRequestAsync(TwitterDefaults.AccessTokenEndpoint, HttpMethod.Post, token, formData: formPost);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Logging\AcceptanceTests.cs (4)
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());
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnection.cs (1)
472using (var request = new HttpRequestMessage(HttpMethod.Post, uri))
Internal\SendUtils.cs (1)
43var request = new HttpRequestMessage(HttpMethod.Post, sendUrl);
Microsoft.AspNetCore.HttpOverrides.Tests (5)
HttpMethodOverrideMiddlewareTest.cs (5)
39var req = new HttpRequestMessage(HttpMethod.Post, ""); 70var req = new HttpRequestMessage(HttpMethod.Post, ""); 133var req = new HttpRequestMessage(HttpMethod.Post, ""); 171var req = new HttpRequestMessage(HttpMethod.Post, ""); 208var req = new HttpRequestMessage(HttpMethod.Post, "");
Microsoft.AspNetCore.Mvc.FunctionalTests (102)
AntiforgeryMiddlewareTest.cs (5)
40var request = new HttpRequestMessage(HttpMethod.Post, "/Test/PostWithRequireAntiforgeryToken"); 83var request = new HttpRequestMessage(HttpMethod.Post, "/Test/PostWithRequireAntiforgeryToken"); 124var request = new HttpRequestMessage(HttpMethod.Post, "/Test/PostWithRequireAntiforgeryTokenAndSizeLimit"); 156var request = new HttpRequestMessage(HttpMethod.Post, "/Test/PostWithRequireAntiforgeryTokenAndFormLimit"); 188var request = new HttpRequestMessage(HttpMethod.Post, "/TestWithRequestSizeLimit/PostWithRequireAntiforgeryTokenAndDisableSizeLimit");
AntiforgeryTests.cs (5)
67var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/Login"); 117var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/FlushAsyncLogin"); 147var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/Login"); 190var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/Login"); 203var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/LoginWithRedirectResultFilter");
ApiBehaviorTest.cs (2)
103var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/contact") 119var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/contact")
BasicTests.cs (2)
207HttpMethod.Post, 649var request = new HttpRequestMessage(HttpMethod.Post, "/Home/Product");
ConsumesAttributeTestsBase.cs (8)
48HttpMethod.Post, 65HttpMethod.Post, 82HttpMethod.Post, 100HttpMethod.Post, 121HttpMethod.Post, 145HttpMethod.Post, 166HttpMethod.Post, 189HttpMethod.Post,
ContentNegotiationTest.cs (1)
404var request = new HttpRequestMessage(HttpMethod.Post, targetUri);
DoNotRespectBrowserAcceptHeaderTests.cs (2)
101request.Method = HttpMethod.Post; 132request.Method = HttpMethod.Post;
FiltersTest.cs (1)
87var request = new HttpRequestMessage(HttpMethod.Post, url)
FormFileUploadTest.cs (2)
39var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/UploadFiles"); 67var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/UploadProductSpecs");
HtmlGenerationTest.cs (4)
324var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Customer/HtmlGeneration_Customer"); 376var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Customer/HtmlGeneration_Customer/CustomerWithRecords"); 617var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/categories/Electronics"); 786var request = new HttpRequestMessage(HttpMethod.Post, "HtmlGeneration_Home/ValidationProviderAttribute");
InputObjectValidationTests.cs (4)
268var requestMessage = new HttpRequestMessage(HttpMethod.Post, "Validation/ValidationThrowsError_WhenValidationExceedsMaxValidationDepth") 289var requestMessage = new HttpRequestMessage(HttpMethod.Post, "TestApi/PostBookWithNoValidation") 318var requestMessage = new HttpRequestMessage(HttpMethod.Post, "TestApi/PostBookWithNoValidation") 350var requestMessage = new HttpRequestMessage(HttpMethod.Post, "TestApi/PostBookWithNoValidation")
JsonInputFormatterTestBase.cs (1)
223var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/JsonFormatter/ReturnInput/");
JsonOutputFormatterTestBase.cs (1)
51var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/SerializableError/CreateEmployee");
NonNullableReferenceTypesTest.cs (2)
52var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/NonNullable"); 94var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/NonNullable");
RazorPageModelTest.cs (6)
39var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryUpdateModel/10") 64var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryValidateModel/10") 89var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryValidateModel/10") 115var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryUpdateModelPageModel/10") 140var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryValidateModelPageModel/10") 165var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryValidateModelPageModel/10")
RazorPagesTest.cs (16)
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"); 416var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/HelloWorldWithPageModelHandler"); 580var request = new HttpRequestMessage(HttpMethod.Post, url); 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") 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")
RazorPagesWithBasePathTest.cs (7)
432var message = new HttpRequestMessage(HttpMethod.Post, "/CustomModelTypeModel") 461var message = new HttpRequestMessage(HttpMethod.Post, "/CustomModelTypeModel?Attempts=3") 489var message = new HttpRequestMessage(HttpMethod.Post, "/CustomModelTypeModel") 629var request = new HttpRequestMessage(HttpMethod.Post, "/Antiforgery/AntiforgeryDefault"); 642var request = new HttpRequestMessage(HttpMethod.Post, "/Antiforgery/AntiforgeryDefault"); 656var request = new HttpRequestMessage(HttpMethod.Post, "/Antiforgery/IgnoreAntiforgery"); 707var request = new HttpRequestMessage(HttpMethod.Post, url)
ReadFromDisconnectedClientTest.cs (2)
42var request = new HttpRequestMessage(HttpMethod.Post, "ReadFromThrowingRequestBody/AppliesAntiforgeryValidation"); 55var request = new HttpRequestMessage(HttpMethod.Post, "ReadFromThrowingRequestBody/ReadForm");
RequestSizeLimitTest.cs (1)
82request.Method = HttpMethod.Post;
RoutingDynamicTest.cs (1)
100var request = new HttpRequestMessage(HttpMethod.Post, url);
RoutingFallbackTest.cs (3)
88var request = new HttpRequestMessage(HttpMethod.Post, url); 104var request = new HttpRequestMessage(HttpMethod.Post, url); 136var request = new HttpRequestMessage(HttpMethod.Post, url)
RoutingTestsBase.cs (1)
496var response = await Client.SendAsync(new HttpRequestMessage(HttpMethod.Post, url));
SerializableErrorTests.cs (3)
72var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/SerializableError/LogErrors") 120var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/SerializableError/CreateEmployee"); 161var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/SerializableError/CreateEmployee");
SimpleWithWebApplicationBuilderTests.cs (2)
232var request = new HttpRequestMessage(HttpMethod.Post, "accepts-default"); 247var request = new HttpRequestMessage(HttpMethod.Post, "accepts-xml");
TempDataInCookiesUsingCookieConsentTest.cs (1)
101var request = new HttpRequestMessage(HttpMethod.Post, path);
TestingInfrastructureTests.cs (2)
56var request = new HttpRequestMessage(HttpMethod.Post, "Testing/RedirectHandler/2") 77var request = new HttpRequestMessage(HttpMethod.Post, "Testing/RedirectHandler/2")
VersioningEndpointRoutingTests.cs (1)
53var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/" + "Customers?version=2");
VersioningTestsBase.cs (4)
175var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Tickets?version=" + version); 199var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Tickets"); 459var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/" + url); 502var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/" + "Customers?version=2");
XmlDataContractSerializerInputFormatterTest.cs (2)
58var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Validation/CreateStore"); 86var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Validation/CreateStore");
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 (1)
Handlers\RedirectHandler.cs (1)
64request.Method == HttpMethod.Post || request.Method == HttpMethod.Put || request.Method == HttpMethod.Patch;
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
239using var request = new HttpRequestMessage(HttpMethod.Post, ""); 310using var request = new HttpRequestMessage(HttpMethod.Post, ""); 386using var request = new HttpRequestMessage(HttpMethod.Post, ""); 488using var request = new HttpRequestMessage(HttpMethod.Post, ""); 572using var request = new HttpRequestMessage(HttpMethod.Post, ""); 723using var request = new HttpRequestMessage(HttpMethod.Post, "");
Microsoft.AspNetCore.Routing.FunctionalTests (15)
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 (2)
37new HttpRequestMessage(HttpMethod.Post, "greeting/James") { Content = new StringContent("Biography") }, 67new HttpRequestMessage(HttpMethod.Post, "greeting/James") { Content = new StringContent("Biography") },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
OpaqueUpgradeTests.cs (1)
297var request = new HttpRequestMessage(HttpMethod.Post, address);
Microsoft.AspNetCore.Server.IISIntegration.Tests (3)
IISMiddlewareTests.cs (3)
134var request = new HttpRequestMessage(HttpMethod.Post, requestPath); 238var request = new HttpRequestMessage(HttpMethod.Post, path); 283var request = new HttpRequestMessage(HttpMethod.Post, "/iisintegration");
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
18[HttpMethod.Post] = 20,
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
18[HttpMethod.Post] = 20,
Microsoft.AspNetCore.SignalR.Client.Tests (5)
LongPollingTransportTests.cs (2)
467if (request.Method == HttpMethod.Post) 535if (request.Method == HttpMethod.Post)
ResponseUtils.cs (2)
36return request.Method == HttpMethod.Post && 60return request.Method == HttpMethod.Post &&
TestHttpMessageHandler.cs (1)
152public void OnPost(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Post, pathAndQuery, handler);
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
1000new [] { HttpMethod.Post },
Microsoft.AspNetCore.StaticFiles.Tests (1)
CacheHeaderTests.cs (1)
438new [] { HttpMethod.Post },
Microsoft.AspNetCore.TestHost (1)
RequestBuilder.cs (1)
94_req.Method = HttpMethod.Post;
Microsoft.AspNetCore.TestHost.Tests (12)
ClientHandlerTests.cs (5)
219var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"); 314var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"); 342var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"); 360HttpRequestMessage message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"); 497using (var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"))
TestClientTests.cs (7)
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");
Microsoft.DotNet.Build.Tasks.Feed (1)
src\CreateAzureDevOpsFeed.cs (1)
148using HttpRequestMessage createFeedMessage = new HttpRequestMessage(HttpMethod.Post, $"{AzureDevOpsProject}/_apis/packaging/feeds");
Microsoft.DotNet.Deployment.Tasks.Links (1)
Microsoft.DotNet.Helix.Sdk (2)
CreateFailedTestsForFailedWorkItems.cs (1)
40HttpMethod.Post,
StartAzurePipelinesTestRun.cs (1)
35HttpMethod.Post,
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolPromotionHelper.cs (1)
146using HttpRequestMessage registerRequest = new(HttpMethod.Post, url)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Languages\csharp\CSharp.cs (1)
212method.Method.ToLower() == "patch" || method == HttpMethod.Post || method == HttpMethod.Put)
Modeler\ServiceClientModelFactory.cs (1)
225return HttpMethod.Post;
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
117using HttpRequestMessage request = new(HttpMethod.Post, _apiChatEndpoint)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (4)
Benchmarks\HeadersReaderBenchmark.cs (1)
35Request = new HttpRequestMessage(HttpMethod.Post, "https://www.microsoft.com");
Benchmarks\HugeHttpCLientLoggingBenchmark.cs (1)
17private static HttpRequestMessage Request => new(HttpMethod.Post, "https://www.microsoft.com");
Benchmarks\MediumHttpClientLoggingBenchmark.cs (1)
17private static HttpRequestMessage Request => new(HttpMethod.Post, "https://www.microsoft.com");
Benchmarks\SmallHttpClientLoggingBenchmark.cs (1)
17private static HttpRequestMessage Request => new(HttpMethod.Post, "https://www.microsoft.com");
Microsoft.Extensions.Http.Diagnostics.Tests (42)
Latency\Internal\HttpLatencyTelemetryHandlerTest.cs (1)
59Method = HttpMethod.Post,
Logging\HttpClientLoggerTest.cs (17)
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\HttpRequestBodyReaderTest.cs (8)
42Method = HttpMethod.Post 62Method = HttpMethod.Post 86Method = HttpMethod.Post 107Method = HttpMethod.Post 135Method = HttpMethod.Post 159Method = HttpMethod.Post 186Method = HttpMethod.Post 212Method = 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.Resilience.PerformanceTests (4)
HedgingBenchmark.cs (1)
16private static HttpRequestMessage Request => new(HttpMethod.Post, _uri);
HttpResilienceBenchmark.cs (1)
27var request = new HttpRequestMessage(HttpMethod.Post, _uri);
RetryBenchmark.cs (1)
25private static HttpRequestMessage Request => new(HttpMethod.Post, _uri);
StandardResilienceBenchmark.cs (1)
25private static HttpRequestMessage Request => new(HttpMethod.Post, _uri);
Stress.AppHost (1)
ResourceBuilderExtensions.cs (1)
41method ??= HttpMethod.Post;
System.Net.Http (4)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\H3StaticTable.Http3.cs (1)
18[HttpMethod.Post] = 20,
System\Net\Http\HttpClient.cs (1)
398HttpRequestMessage request = CreateRequestMessage(HttpMethod.Post, requestUri);
System\Net\Http\HttpMethod.cs (1)
1064 => Post,
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (1)
152return requestMethod == HttpMethod.Post;
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
690var requestMessage = new HttpRequestMessage(HttpMethod.Post, httpRequestUri);