70 references to HttpMethod
Aspire.Dashboard.Tests (1)
Integration\OtlpHttpServiceTests.cs (1)
260var requestMessage = new HttpRequestMessage(new HttpMethod(method), "/v1/logs");
AuthSamples.FunctionalTests (1)
HttpClientExtensions.cs (1)
47var submision = new HttpRequestMessage(new HttpMethod(submit.Method.ToString()), target)
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1051_httpRequestMessage.Method = new HttpMethod(requestProperty.Method);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageProperty.cs (1)
297this.HttpRequestMessage.Method = new HttpMethod(value);
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
582var request = new HttpRequestMessage(new HttpMethod(method), _fixture.Client.BaseAddress + $"SetCustomErorCode?code={code}");
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
582var request = new HttpRequestMessage(new HttpMethod(method), _fixture.Client.BaseAddress + $"SetCustomErorCode?code={code}");
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Extensions\HttpClientExtensions.cs (1)
49var submision = new HttpRequestMessage(new HttpMethod(submit.Method.ToString()), target)
Microsoft.AspNetCore.Mvc.FunctionalTests (45)
ApiExplorerTest.cs (2)
416new HttpMethod("PUT"), 439new HttpMethod("POST"),
BasicTests.cs (1)
225new HttpMethod(method),
CorsTests.cs (1)
16var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/Post");
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),
FileResultTests.cs (4)
209var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/DownloadFiles/DownloadFromDiskWithFileName"); 430var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/DownloadFiles/DownloadFromStreamWithFileName"); 634var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName"); 784var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/EmbeddedFiles/DownloadFileWithFileName_RangeProcessingNotEnabled");
JsonPatchInputFormatterTest.cs (1)
168Method = new HttpMethod("PATCH"),
RazorPagesTest.cs (1)
437var request = new HttpRequestMessage(new HttpMethod(httpMethod), url);
RoutingTests.cs (1)
36var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod("POST"), url));
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);
VersioningTestsBase.cs (6)
224var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Tickets/5?version=" + version); 250var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Tickets/5"); 312var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies"); 333var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies?version=2"); 355var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies/5"); 376var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies/5?version=2");
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
271return new HttpRequestMessage(new HttpMethod(method), requestUri);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
257return new HttpRequestMessage(new HttpMethod(method), requestUri);
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionMiddlewareTest.cs (1)
1278var request = new HttpRequestMessage(new HttpMethod(httpMethod), "");
Microsoft.AspNetCore.Routing.FunctionalTests (1)
RouterSampleTest.cs (1)
83var message = new HttpRequestMessage(new HttpMethod(httpVerb), "api/all/Joe/Duf");
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
160requestMessage.Method = new HttpMethod(request.Method);
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
1004new [] { new HttpMethod("VERB") }
Microsoft.AspNetCore.StaticFiles.Tests (1)
CacheHeaderTests.cs (1)
442new [] { new HttpMethod("VERB") }
Microsoft.AspNetCore.TestHost (1)
RequestBuilder.cs (1)
74_req.Method = new HttpMethod(method);
Microsoft.DotNet.Helix.Sdk (1)
StopAzurePipelinesTestRun.cs (1)
30new HttpMethod("PATCH"),
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\ServiceClientModelFactory.cs (1)
233return new HttpMethod("PATCH");
Microsoft.DotNet.VersionTools (4)
Automation\GitHubApi\GitHubClient.cs (3)
209HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("PATCH"), url); 372HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("POST"), url) 396HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("PATCH"), url)
Automation\VstsApi\VstsAdapterClient.cs (1)
169var request = new HttpRequestMessage(new HttpMethod("PATCH"), url)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Telemetry\DownstreamDependencyMetadataManagerTests.cs (2)
50Method = new HttpMethod(method: httpMethod), 70Method = new HttpMethod(method: httpMethod),
System.Net.Http (2)
System\Net\Http\HttpMethod.cs (2)
86/// same validation being performed as by the <see cref="HttpMethod(string)"/> constructor. 90new HttpMethod(method.ToString());