12 instantiations of HttpRequestOptionsKey
Microsoft.AspNetCore.Components.WebAssembly (3)
Http\WebAssemblyHttpRequestMessageExtensions.cs (3)
13private static readonly HttpRequestOptionsKey<IDictionary<string, object>> FetchRequestOptionsKey = new HttpRequestOptionsKey<IDictionary<string, object>>("WebAssemblyFetchOptions"); 14private static readonly HttpRequestOptionsKey<bool> WebAssemblyEnableStreamingRequestKey = new HttpRequestOptionsKey<bool>("WebAssemblyEnableStreamingRequest"); 15private static readonly HttpRequestOptionsKey<bool> WebAssemblyEnableStreamingResponseKey = new HttpRequestOptionsKey<bool>("WebAssemblyEnableStreamingResponse");
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnection.cs (1)
475request.Options.Set(new HttpRequestOptionsKey<bool>("IsNegotiate"), true);
Internal\AccessTokenHttpMessageHandler.cs (1)
28request.Options.TryGetValue(new HttpRequestOptionsKey<bool>("IsNegotiate"), out var value) && value == true
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\RedirectHandler.cs (1)
162var key = new HttpRequestOptionsKey<object?>(property.Key);
Microsoft.Extensions.Http.Diagnostics (1)
Http\HttpDiagnosticsHttpRequestMessageExtensions.cs (1)
44_ = request.Options.TryGetValue(new HttpRequestOptionsKey<RequestMetadata>(TelemetryConstants.RequestMetadataKey), out var metadata);
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
HttpResilienceBenchmark.cs (1)
28request.Options.Set(new HttpRequestOptionsKey<string>("dummy"), "dummy");
Microsoft.Extensions.Http.Resilience.Tests (4)
Resilience\RequestMessageSnapshotTests.cs (4)
70initialRequest.Options.Set(new HttpRequestOptionsKey<string>("C"), "C"); 71initialRequest.Options.Set(new HttpRequestOptionsKey<string>("D"), "D"); 92initialRequest.Options.TryGetValue(new HttpRequestOptionsKey<string>("C"), out var val).Should().BeTrue(); 95initialRequest.Options.TryGetValue(new HttpRequestOptionsKey<string>("D"), out val).Should().BeTrue();
6 references to HttpRequestOptionsKey
Microsoft.AspNetCore.Components.WebAssembly (3)
Http\WebAssemblyHttpRequestMessageExtensions.cs (3)
13private static readonly HttpRequestOptionsKey<IDictionary<string, object>> FetchRequestOptionsKey = new HttpRequestOptionsKey<IDictionary<string, object>>("WebAssemblyFetchOptions"); 14private static readonly HttpRequestOptionsKey<bool> WebAssemblyEnableStreamingRequestKey = new HttpRequestOptionsKey<bool>("WebAssemblyEnableStreamingRequest"); 15private static readonly HttpRequestOptionsKey<bool> WebAssemblyEnableStreamingResponseKey = new HttpRequestOptionsKey<bool>("WebAssemblyEnableStreamingResponse");
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\RedirectHandler.cs (1)
162var key = new HttpRequestOptionsKey<object?>(property.Key);
System.Net.Http (2)
artifacts\obj\System.Net.Http\Debug\net10.0\System.Net.Http.notsupported.cs (2)
316public void Set<TValue>(System.Net.Http.HttpRequestOptionsKey<TValue> key, TValue value) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } 330public bool TryGetValue<TValue>(System.Net.Http.HttpRequestOptionsKey<TValue> key, [System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute(false)] out TValue value) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }