79 references to Post
Aspire.Dashboard.Tests (6)
Integration\McpServiceTests.cs (3)
328var request = new HttpRequestMessage(HttpMethod.Post, "/mcp") 362var notificationRequest = new HttpRequestMessage(HttpMethod.Post, "/mcp") 389var request = new HttpRequestMessage(HttpMethod.Post, "/mcp")
Integration\OtlpHttpJsonTests.cs (1)
658var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/logs");
Integration\OtlpHttpServiceTests.cs (2)
143var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/logs"); 171var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/logs");
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
2446commandOptions.Method ??= HttpMethod.Post;
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
154Method = HttpMethod.Post,
Aspire.Hosting.GitHub.Models (1)
GitHubModelsHealthCheck.cs (1)
38using var request = new HttpRequestMessage(HttpMethod.Post, new Uri($"{builder["Endpoint"]}/chat/completions"));
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
594var requestMessage = new HttpRequestMessage(HttpMethod.Post, httpRequestUri);
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
218var requestMessage = new HttpRequestMessage(HttpMethod.Post, Options.TokenEndpoint);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Logging\AcceptanceTests.cs (5)
236Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString()); 296Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString()); 349Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString()); 378using var request = new HttpRequestMessage(HttpMethod.Post, "/") 409Assert.Single(requestState, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString());
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
312requestMethod: HttpMethod.Post,
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)
60Method = HttpMethod.Post,
Logging\HttpClientLoggerTest.cs (17)
173Method = HttpMethod.Post, 185Method = HttpMethod.Post, 270Method = HttpMethod.Post, 282Method = HttpMethod.Post, 377Method = HttpMethod.Post, 389Method = HttpMethod.Post, 474Method = HttpMethod.Post, 486Method = HttpMethod.Post, 590Method = HttpMethod.Post, 602Method = HttpMethod.Post, 695Method = HttpMethod.Post, 738Method = HttpMethod.Post, 776Method = HttpMethod.Post, 820Method = HttpMethod.Post, 854Method = HttpMethod.Post, 870Method = HttpMethod.Post, 967Method = 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)
51Method = HttpMethod.Post, 85Method = HttpMethod.Post, 121Method = HttpMethod.Post, 150Method = HttpMethod.Post, 181Method = HttpMethod.Post, 215Method = HttpMethod.Post, 254Method = HttpMethod.Post, 291Method = HttpMethod.Post, 332Method = HttpMethod.Post, 364Method = HttpMethod.Post, 390Method = HttpMethod.Post, 424Method = HttpMethod.Post, 463Method = HttpMethod.Post, 497Method = HttpMethod.Post, 532Method = HttpMethod.Post, 566Method = HttpMethod.Post,
Microsoft.Extensions.Http.Resilience (1)
Polly\HttpRetryStrategyOptionsExtensions.cs (1)
32HttpMethod.Delete, HttpMethod.Post, HttpMethod.Put,
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);
Microsoft.Extensions.Http.Resilience.Tests (5)
Polly\HttpRetryStrategyOptionsExtensionsTests.cs (5)
47options.DisableFor(HttpMethod.Post, HttpMethod.Delete); 59options.DisableFor(HttpMethod.Post); 71options.DisableFor(HttpMethod.Post); 73using var request = new HttpRequestMessage { Method = HttpMethod.Post }; 84options.DisableFor(HttpMethod.Post);
Microsoft.NET.Build.Containers (1)
AuthHandshakeMessageHandler.cs (1)
483HttpRequestMessage postMessage = new(HttpMethod.Post, realmUri)
NuGet.Protocol (1)
Resources\PackageUpdateResource.cs (1)
930HttpMethod.Post,
System.Net.Http (3)
System\Net\Http\HttpClient.cs (1)
391HttpRequestMessage request = CreateRequestMessage(HttpMethod.Post, requestUri);
System\Net\Http\HttpMethod.cs (1)
1104 => Post,
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (1)
165return requestMethod == HttpMethod.Post;
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
690var requestMessage = new HttpRequestMessage(HttpMethod.Post, httpRequestUri);