69 references to HttpMethod
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)
404new HttpMethod("PUT"), 427new HttpMethod("POST"),
BasicTests.cs (1)
214new HttpMethod(method),
CorsTests.cs (1)
21var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/Post");
CorsTestsBase.cs (12)
32var request = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Cors/GetBlogComments"); 52var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/GetOptions"); 68var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/GetOptions"); 86var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/Post"); 106new HttpMethod(CorsConstants.PreflightHttpMethod), 175new HttpMethod(CorsConstants.PreflightHttpMethod), 235var request = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Cors/GetExclusiveContent"); 260new HttpMethod(CorsConstants.PreflightHttpMethod), 286var request = new HttpRequestMessage(new HttpMethod(CorsConstants.PreflightHttpMethod), url); 318var request = new HttpRequestMessage(new HttpMethod(CorsConstants.PreflightHttpMethod), url); 356new HttpMethod(CorsConstants.PreflightHttpMethod), 381new HttpMethod(CorsConstants.PreflightHttpMethod),
FileResultTests.cs (4)
196var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/DownloadFiles/DownloadFromDiskWithFileName"); 417var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/DownloadFiles/DownloadFromStreamWithFileName"); 621var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName"); 771var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/EmbeddedFiles/DownloadFileWithFileName_RangeProcessingNotEnabled");
JsonPatchInputFormatterTest.cs (1)
156Method = new HttpMethod("PATCH"),
RazorPagesTest.cs (1)
426var request = new HttpRequestMessage(new HttpMethod(httpMethod), url);
RoutingTests.cs (1)
41var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod("POST"), url));
RoutingTestsBase.cs (16)
389var request = new HttpRequestMessage(new HttpMethod(method), $"http://localhost{url}"); 442var request = new HttpRequestMessage(new HttpMethod(method), $"http://localhost{url}"); 510var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod("POST"), url)); 526var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod(method), url)); 597var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod(method), url)); 691var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Store/Shop/Orders"); 716var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/api/Employee/5/Salary"); 759var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/api/Employee"); 781var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/api/Employee/Manager"); 806var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/" + path); 826var message = new HttpRequestMessage(new HttpMethod("MERGE"), "http://localhost/api/Employee/5"); 849var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/api/Employee/5/Administrator"); 1052var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/api/Company/5"); 1474var request = new HttpRequestMessage(new HttpMethod(verb), "http://localhost" + path); 1509var request = new HttpRequestMessage(new HttpMethod(verb), "http://localhost" + path); 1526var request = new HttpRequestMessage(new HttpMethod(verb), "http://localhost" + path);
VersioningTestsBase.cs (6)
212var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Tickets/5?version=" + version); 238var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Tickets/5"); 300var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies"); 321var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies?version=2"); 343var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies/5"); 364var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies/5?version=2");
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
270return 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)
783new [] { 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)
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());
System.ServiceModel.Http (2)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1170_httpRequestMessage.Method = new HttpMethod(requestProperty.Method);
System\ServiceModel\Channels\HttpRequestMessageProperty.cs (1)
280HttpRequestMessage.Method = new HttpMethod(value);