1 write to Headers
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnectionFactory.cs (1)
83Headers = options.Headers,
20 references to Headers
Microsoft.AspNetCore.Http.Connections.Client (7)
HttpConnection.cs (2)
639if (_httpConnectionOptions?.Headers != null) 641foreach (var header in _httpConnectionOptions.Headers)
HttpConnectionFactory.cs (1)
83Headers = options.Headers,
HttpConnectionOptions.cs (1)
258/// This delegate is invoked after headers from <see cref="Headers"/> and the access token from <see cref="AccessTokenProvider"/>
Internal\WebSocketsTransport.cs (2)
114if (context.Options.Headers.Count > 0) 122foreach (var header in context.Options.Headers)
Internal\WebSocketsTransport.Log.cs (1)
72[LoggerMessage(20, LogLevel.Warning, $"Configuring request headers using {nameof(HttpConnectionOptions)}.{nameof(HttpConnectionOptions.Headers)} is not supported when using websockets transport " +
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (7)
HubConnectionTests.cs (7)
1573options.Headers["X-test"] = "42"; 1574options.Headers["X-42"] = "test"; 1604options.Headers["X-test"] = "42"; 1605options.Headers["X-42"] = "test"; 1646options.Headers["User-Agent"] = ""; 1681options.Headers["User-Agent"] = "User Value"; 2040options.Headers.Add(HeaderUserIdProvider.HeaderName, "SuperAdmin");
Microsoft.AspNetCore.SignalR.Client.Tests (5)
HttpConnectionFactoryTests.cs (1)
87{ $"{nameof(HttpConnectionOptions.Headers)}", new Dictionary<string, string>() },
HubConnectionTests.cs (4)
773options.Headers.Add(fakeHeader, "value"); 800Assert.Same(resolvedOptions.Headers, originalOptions.Headers); 801Assert.Contains(fakeHeader, resolvedOptions.Headers);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisEndToEnd.cs (1)
223httpConnectionOptions.Headers["UserName"] = userName;