139 references to Get
aspire (6)
Agents\AspireSkills\AspireSkillsInstaller.cs (1)
545var request = new HttpRequestMessage(HttpMethod.Get, url);
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (1)
136var request = new HttpRequestMessage(HttpMethod.Get, url);
Documentation\CachedHttpDocumentFetcher.cs (1)
39using var request = new HttpRequestMessage(HttpMethod.Get, url);
Telemetry\InternalMicrosoftDetector.cs (3)
702using var userRequest = NewGitHubRequest(HttpMethod.Get, "https://api.github.com/user", token); 715using var membershipRequest = NewGitHubRequest(HttpMethod.Get, $"https://api.github.com/user/memberships/orgs/{MicrosoftGitHubOrg}", token); 724using var publicMemberRequest = NewGitHubRequest(HttpMethod.Get, $"https://api.github.com/orgs/{MicrosoftGitHubOrg}/public_members/{login}", token);
Aspire.Cli.EndToEnd.Tests (1)
Helpers\CliE2ETestHelpers.cs (1)
820using var request = new HttpRequestMessage(HttpMethod.Get, url);
Aspire.Dashboard.Tests (7)
Integration\BlazorWebSocketOriginTests.cs (1)
49var request = new HttpRequestMessage(HttpMethod.Get, path)
Integration\HealthTests.cs (1)
33var request = new HttpRequestMessage(HttpMethod.Get, $"/{DashboardUrls.HealthBasePath}");
Integration\ResponseCompressionTests.cs (2)
25var request = new HttpRequestMessage(HttpMethod.Get, DashboardUrls.StructuredLogsBasePath); 47var request = new HttpRequestMessage(HttpMethod.Get, path);
Integration\StartupTests.cs (3)
418var request = new HttpRequestMessage(HttpMethod.Get, "/"); 519var request = new HttpRequestMessage(HttpMethod.Get, "/"); 1022var request = new HttpRequestMessage(HttpMethod.Get, "/");
Aspire.Hosting (2)
Dcp\DcpKubernetesClient.cs (2)
76var httpResponse = await SendRequest<object?>(url, HttpMethod.Get, customHeaders: null, body: null, cancellationToken).ConfigureAwait(false); 98Method = HttpMethod.Get,
Aspire.Hosting.Azure.Sandboxes (3)
Internal\Adc\AzureDevComputeClient.cs (3)
79HttpMethod.Get, 170HttpMethod.Get, 379method == HttpMethod.Get ||
Aspire.Hosting.Azure.Tests (1)
AzureSandboxesTests.cs (1)
519Assert.Equal(HttpMethod.Get, request.Method);
Aspire.Hosting.OpenAI (2)
OpenAIHealthCheck.cs (1)
66using var req = new HttpRequestMessage(HttpMethod.Get, s_statusPageUri);
OpenAIModelHealthCheck.cs (1)
40using var request = new HttpRequestMessage(HttpMethod.Get, new Uri($"{endpoint}/models/{model}"));
Aspire.Hosting.Tests (2)
WithHttpCommandTests.cs (2)
407.WithHttpCommand("/some-path", "Do The Get Thing", commandOptions: new() { Method = HttpMethod.Get }) 408.WithHttpCommand("/some-path", "Do The Get Thing", endpointName: "custom-endpoint", commandOptions: new() { Method = HttpMethod.Get })
dotnet-sourcelink (1)
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
47var request = new HttpRequestMessage(HttpMethod.Get, Options.UserInformationEndpoint);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
43var request = new HttpRequestMessage(HttpMethod.Get, Options.UserInformationEndpoint);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1063var requestMessage = new HttpRequestMessage(HttpMethod.Get, userInfoEndpoint);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
325var response = await ExecuteRequestAsync("https://api.twitter.com/1.1/account/verify_credentials.json", HttpMethod.Get, accessToken, queryParameters: new Dictionary<string, string>() { { "include_email", "true" } });
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (8)
Logging\AcceptanceTests.cs (3)
442using var httpMessage = new HttpRequestMessage(HttpMethod.Get, "/"); 470Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 668Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
Logging\AcceptanceTests.Mvc.cs (5)
84Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 122Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 174Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 209Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 252Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
Microsoft.AspNetCore.Http.Connections.Client (3)
Internal\LongPollingTransport.cs (2)
54var request = new HttpRequestMessage(HttpMethod.Get, url); 154var request = new HttpRequestMessage(HttpMethod.Get, pollUrl);
Internal\ServerSentEventsTransport.cs (1)
55var request = new HttpRequestMessage(HttpMethod.Get, url);
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\RedirectHandler.cs (1)
152redirect.Method = HttpMethod.Get;
Microsoft.AspNetCore.OpenApi (1)
Extensions\ApiDescriptionExtensions.cs (1)
35"GET" => HttpMethod.Get,
Microsoft.AspNetCore.TestHost (2)
RequestBuilder.cs (2)
23_req = new HttpRequestMessage(HttpMethod.Get, path); 84_req.Method = HttpMethod.Get;
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
413requestMethod ??= HttpMethod.Get;
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientTests.cs (2)
2906Method = HttpMethod.Get, 3158Method = HttpMethod.Get,
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpRequestBodyReader.cs (1)
39if (request.Content == null || request.Method == HttpMethod.Get)
Microsoft.Extensions.Http.Diagnostics.Tests (25)
Logging\AcceptanceTests.cs (15)
47Assert.Equal($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", logRecord.Message); 80Assert.EndsWith($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", firstLogRecord.Message); 88Assert.Equal($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", secondLogRecord.Message); 109Method = HttpMethod.Get, 164Method = HttpMethod.Get, 180Method = HttpMethod.Get, 245Method = HttpMethod.Get, 267Method = HttpMethod.Get, 310Method = HttpMethod.Get, 357Method = HttpMethod.Get, 422Method = HttpMethod.Get, 591using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, _unreachableRequestUri); 617using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, _unreachableRequestUri); 640using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, _unreachableRequestUri); 683Method = HttpMethod.Get,
Logging\HttpClientLoggerTest.cs (2)
85Method = HttpMethod.Get, 123Method = HttpMethod.Get,
Logging\HttpRequestBodyReaderTest.cs (1)
233Method = HttpMethod.Get
Logging\HttpRequestReaderTest.cs (7)
663Method = HttpMethod.Get, 695using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, uri); 725using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, uri); 761using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, uri); 809using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, uri); 850using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, uri); 898httpRequestMessage.Method = HttpMethod.Get;
Microsoft.Extensions.Http.Resilience (1)
Resilience\ResilienceHttpClientBuilderExtensions.Resilience.cs (1)
128using var request = new HttpRequestMessage(HttpMethod.Get, "https://localhost:123");
Microsoft.Extensions.Http.Resilience.Tests (20)
Hedging\HedgingTests.cs (9)
83using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 123using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 142using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 164using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 189using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 213using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 237using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 265using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 289using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query");
Hedging\StandardHedgingTests.cs (5)
223using var request = new HttpRequestMessage(HttpMethod.Get, "https://key:80/discarded"); 256using var firstRequest = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 263using var secondRequest = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 291using var request = new HttpRequestMessage(HttpMethod.Get, "https://some-endpoint:1234/some-path?query"); 338using var request = new HttpRequestMessage(HttpMethod.Get, $"https://{FailingEndpoint}:3000");
Polly\HttpRetryStrategyOptionsExtensionsTests.cs (3)
18Assert.Throws<ArgumentNullException>(() => ((HttpRetryStrategyOptions)null!).DisableFor(HttpMethod.Get)); 37Assert.Throws<ArgumentException>(() => options.DisableFor(HttpMethod.Get)); 61using var request = new HttpRequestMessage { Method = HttpMethod.Get };
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
41using var request = new HttpRequestMessage(HttpMethod.Get, url);
Resilience\RequestMessageSnapshotTests.cs (2)
24Method = HttpMethod.Get, 58Method = HttpMethod.Get,
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
200var httpRequest = new HttpRequestMessage(HttpMethod.Get, "http://basket");
Microsoft.ML.Tokenizers (1)
Utils\Helpers.netcoreapp.cs (1)
31HttpResponseMessage response = client.Send(new HttpRequestMessage(HttpMethod.Get, url), HttpCompletionOption.ResponseHeadersRead);
Microsoft.ML.Tokenizers.Tests (1)
src\Microsoft.ML.Tokenizers\Utils\Helpers.netcoreapp.cs (1)
31HttpResponseMessage response = client.Send(new HttpRequestMessage(HttpMethod.Get, url), HttpCompletionOption.ResponseHeadersRead);
Microsoft.NET.Build.Containers (3)
AuthHandshakeMessageHandler.cs (1)
529var message = new HttpRequestMessage(HttpMethod.Get, builder.ToString());
Registry\DefaultBlobOperations.cs (1)
65using HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, new Uri(_baseUri, $"/v2/{repositoryName}/blobs/{digest}")).AcceptManifestFormats();
Registry\DefaultManifestOperations.cs (1)
43using HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, new Uri(_baseUri, $"/v2/{repositoryName}/manifests/{reference}")).AcceptManifestFormats();
NuGet.Protocol (5)
HttpSource\HttpSource.cs (1)
120var requestMessage = HttpRequestMessageFactory.Create(HttpMethod.Get, request.Uri, log);
HttpSource\HttpSourceRequest.cs (2)
18: this(() => HttpRequestMessageFactory.Create(HttpMethod.Get, uri, log)) 23: this(() => HttpRequestMessageFactory.Create(HttpMethod.Get, uri, log))
LegacyFeed\ODataServiceDocumentUtils.cs (1)
28new HttpSourceRequest(() => HttpRequestMessageFactory.Create(HttpMethod.Get, url, log)),
LegacyFeed\V2FeedParser.cs (1)
585var request = HttpRequestMessageFactory.Create(HttpMethod.Get, uri, log);
Stress.AppHost (21)
CommandResources.cs (21)
903serviceBuilder.WithHttpCommand("/write-console", "Write to console", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 904serviceBuilder.WithHttpCommand("/increment-counter", "Increment counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 905serviceBuilder.WithHttpCommand("/big-trace", "Big trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 906serviceBuilder.WithHttpCommand("/log-message", "Log message", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 907serviceBuilder.WithHttpCommand("/http-command-auto-result", "HTTP command auto result", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning", ResultMode = HttpCommandResultMode.Auto, Description = "Run an HTTP command and infer the result format from the response content type" }); 908serviceBuilder.WithHttpCommand("/http-command-json-result", "HTTP command JSON result", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning", ResultMode = HttpCommandResultMode.Json, Description = "Run an HTTP command and flow the JSON response back to the caller" }); 909serviceBuilder.WithHttpCommand("/http-command-text-result", "HTTP command text result", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning", ResultMode = HttpCommandResultMode.Text, Description = "Run an HTTP command and flow the plain-text response back to the caller" }); 910serviceBuilder.WithHttpCommand("/multiple-traces-linked", "Multiple traces linked", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 911serviceBuilder.WithHttpCommand("/overflow-counter", "Overflow counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 912serviceBuilder.WithHttpCommand("/nested-trace-spans", "Out of order nested spans", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 913serviceBuilder.WithHttpCommand("/exemplars-no-span", "Examplars with no span", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 914serviceBuilder.WithHttpCommand("/genai-trace", "Gen AI trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 915serviceBuilder.WithHttpCommand("/genai-langchain-trace", "Gen AI LangChain trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 916serviceBuilder.WithHttpCommand("/genai-trace-display-error", "Gen AI trace display error", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 917serviceBuilder.WithHttpCommand("/genai-evaluations", "Gen AI evaluations", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 918serviceBuilder.WithHttpCommand("/log-formatting", "Log formatting", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 925commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 930commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 935commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 940commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 945commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
System.Net.Http (11)
System\Net\Http\HttpClient.cs (4)
175HttpRequestMessage request = CreateRequestMessage(HttpMethod.Get, requestUri); 249HttpRequestMessage request = CreateRequestMessage(HttpMethod.Get, requestUri); 326HttpRequestMessage request = CreateRequestMessage(HttpMethod.Get, requestUri); 387SendAsync(CreateRequestMessage(HttpMethod.Get, requestUri), completionOption, cancellationToken);
System\Net\Http\HttpMethod.cs (3)
87/// This method may return a singleton instance for known methods; for example, it may return <see cref="Get"/> 88/// if "GET" is specified. The parsing is performed in a case-insensitive manner, so it may also return <see cref="Get"/> 104'g' => Get,
System\Net\Http\HttpRequestMessage.cs (1)
180: this(HttpMethod.Get, (Uri?)null)
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (3)
70Trace($"Modified request from {request.Method} to {HttpMethod.Get} in response to status code {(int)response.StatusCode} '{response.StatusCode}'.", request.GetHashCode()); 73request.Method = HttpMethod.Get; 167return requestMethod != HttpMethod.Get && requestMethod != HttpMethod.Head;
System.Net.Requests (2)
System\Net\HttpWebRequest.cs (2)
39private string _originVerb = HttpMethod.Get.Method; 1077if (string.Equals(HttpMethod.Get.Method, _originVerb, StringComparison.OrdinalIgnoreCase) ||