56 references to Head
CodeGenerator (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
16[HttpMethod.Head] = 18,
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1237Method = HttpMethod.Head,
GenerateRulesMissingDocumentation (1)
Program.cs (1)
113var request = new HttpRequestMessage(HttpMethod.Head, uri);
HttpStress (1)
Program.cs (1)
325using (var req = new HttpRequestMessage(HttpMethod.Head, serverUri) { Version = httpVersion })
Microsoft.AspNetCore.Mvc.FunctionalTests (7)
FileResultTests.cs (4)
279var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag"); 498var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/DownloadFiles/DownloadFromStreamWithFileName_WithEtag"); 704var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName_WithEtag"); 908var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/EmbeddedFiles/DownloadFileWithFileName");
RazorPagesTest.cs (2)
890var request = new HttpRequestMessage(HttpMethod.Head, "Pages/PropertyBinding/PageModelWithPropertyBinding/10?PropertyWithSupportGetsTrue=foo"); 906var request = new HttpRequestMessage(HttpMethod.Head, "Pages/PropertyBinding/BindPropertyWithGet?value=11");
RazorPagesWithBasePathTest.cs (1)
616var request = new HttpRequestMessage(HttpMethod.Head, "/Antiforgery/AntiforgeryDefault");
Microsoft.AspNetCore.OutputCaching.Tests (4)
OutputCacheTests.cs (4)
91var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 112var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 1069if (initialResponse.RequestMessage.Method == HttpMethod.Head && 1070subsequentResponse.RequestMessage.Method == HttpMethod.Head)
Microsoft.AspNetCore.ResponseCaching.Tests (4)
ResponseCachingTests.cs (4)
97var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 120var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 973if (initialResponse.RequestMessage.Method == HttpMethod.Head && 974subsequentResponse.RequestMessage.Method == HttpMethod.Head)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Listener\ResponseHeaderTests.cs (1)
356var request = new HttpRequestMessage(HttpMethod.Head, uri);
Microsoft.AspNetCore.Server.IISIntegration.Tests (1)
IISMiddlewareTests.cs (1)
152HttpMethod.Head,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
16[HttpMethod.Head] = 18,
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
16[HttpMethod.Head] = 18,
Microsoft.AspNetCore.SignalR.Client.Tests (1)
TestHttpMessageHandler.cs (1)
155public void OnHead(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Head, pathAndQuery, handler);
Microsoft.AspNetCore.SpaServices.Extensions (1)
AngularCli\AngularCliMiddleware.cs (1)
114new HttpRequestMessage(HttpMethod.Head, cliServerUri),
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
995new [] { HttpMethod.Head }
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
StaticFileMiddlewareTests.cs (1)
201var request = new HttpRequestMessage(HttpMethod.Head, requestUrl);
Microsoft.AspNetCore.StaticFiles.Tests (11)
CacheHeaderTests.cs (1)
433new [] { HttpMethod.Head }
RangeHeaderTests.cs (10)
44var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 116var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 152var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 190var req = new HttpRequestMessage(HttpMethod.Head, "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"); 326var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 359var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 401var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 442var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
Microsoft.DotNet.Helix.Sdk (1)
FindDotNetCliPackage.cs (1)
266using var req = new HttpRequestMessage(HttpMethod.Head, uri);
Microsoft.DotNet.Helix.Sdk.Tests (8)
FindDotNetCliPackageTests.cs (8)
32RequestMessage= new HttpRequestMessage(HttpMethod.Head, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 42RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 80RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 131RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 183RequestMessage= new HttpRequestMessage(HttpMethod.Head, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 193RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 249RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 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.SwaggerGenerator.CodeGenerator (2)
Languages\csharp\CSharp.cs (1)
211if (method == HttpMethod.Delete || method == HttpMethod.Get || method == HttpMethod.Head ||
Modeler\ServiceClientModelFactory.cs (1)
231return HttpMethod.Head;
Microsoft.Extensions.Http.Resilience.Tests (2)
Resilience\HttpClientBuilderExtensionsTests.BySelector.cs (2)
38using var request = new HttpRequestMessage(HttpMethod.Head, url); 84using var request = new HttpRequestMessage(HttpMethod.Head, url);
Microsoft.Extensions.ML (1)
ModelLoaders\UriModelLoader.cs (1)
109var headRequest = new HttpRequestMessage(HttpMethod.Head, uri);
System.Net.Http (3)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\H3StaticTable.Http3.cs (1)
16[HttpMethod.Head] = 18,
System\Net\Http\HttpMethod.cs (1)
101'h' => Head,
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (1)
154return requestMethod != HttpMethod.Get && requestMethod != HttpMethod.Head;
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1078string.Equals(HttpMethod.Head.Method, _originVerb, StringComparison.OrdinalIgnoreCase) ||