56 references to UserAgent
CodeGenerator (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
97HeaderNames.UserAgent 168HeaderNames.UserAgent,
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
242StringValues UserAgent { get => this[HeaderNames.UserAgent]; set => this[HeaderNames.UserAgent] = value; }
Microsoft.AspNetCore.HttpLogging (3)
HttpLoggingOptions.cs (1)
56HeaderNames.UserAgent,
W3CLoggerOptions.cs (1)
140clonedSet.Remove(HeaderNames.UserAgent);
W3CLoggingMiddleware.cs (1)
162if (request.Headers.TryGetValue(HeaderNames.UserAgent, out var agent))
Microsoft.AspNetCore.Rewrite (2)
ApacheModRewrite\ServerVariables.cs (1)
34return new HeaderSegment(HeaderNames.UserAgent);
IISUrlRewrite\ServerVariables.cs (1)
52managedVariableThunk = () => new HeaderSegment(HeaderNames.UserAgent);
Microsoft.AspNetCore.Server.HttpSys (7)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1151if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1378if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1626if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1978if (string.Equals(key, HeaderNames.UserAgent, StringComparison.Ordinal)) 2355yield return HeaderNames.UserAgent; 2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent); 2788HttpSysRequestHeader.UserAgent => HeaderNames.UserAgent,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestHeaderTests.cs (1)
323yield return (HttpSysRequestHeader.UserAgent, HeaderNames.UserAgent);
Microsoft.AspNetCore.Server.IIS (7)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1151if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1378if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1626if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1978if (string.Equals(key, HeaderNames.UserAgent, StringComparison.Ordinal)) 2355yield return HeaderNames.UserAgent; 2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent); 2788HttpSysRequestHeader.UserAgent => HeaderNames.UserAgent,
Microsoft.AspNetCore.Server.Kestrel.Core (20)
Internal\Http\HttpHeaders.Generated.cs (20)
363HeaderNames.UserAgent, 3059if (ReferenceEquals(HeaderNames.UserAgent, key)) 3114if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 3927if (ReferenceEquals(HeaderNames.UserAgent, key)) 3964if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 4822if (ReferenceEquals(HeaderNames.UserAgent, key)) 4883if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 5929if (ReferenceEquals(HeaderNames.UserAgent, key)) 5990if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 7055array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, _headers._UserAgent); 7691nameStr = HeaderNames.UserAgent; 8084nameStr = HeaderNames.UserAgent; 8292nameStr = HeaderNames.UserAgent; 8419_current = new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, _collection._headers._UserAgent); 10700if (!TryGetUnknown(HeaderNames.UserAgent, ref value)) 10709ValidateHeaderValueCharacters(HeaderNames.UserAgent, value, EncodingSelector); 10710SetValueUnknown(HeaderNames.UserAgent, value); 16955if (!TryGetUnknown(HeaderNames.UserAgent, ref value)) 16964ValidateHeaderValueCharacters(HeaderNames.UserAgent, value, EncodingSelector); 16965SetValueUnknown(HeaderNames.UserAgent, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
97HeaderNames.UserAgent 168HeaderNames.UserAgent,
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
BytesToStringBenchmark.cs (1)
47_headerName = HeaderNames.UserAgent;
Microsoft.AspNetCore.Shared.Tests (7)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1151if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1378if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1626if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1978if (string.Equals(key, HeaderNames.UserAgent, StringComparison.Ordinal)) 2355yield return HeaderNames.UserAgent; 2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent); 2788HttpSysRequestHeader.UserAgent => HeaderNames.UserAgent,
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
160if (string.Equals(header.Key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.TestHost.Tests (1)
ClientHandlerTests.cs (1)
121httpClient.DefaultRequestHeaders.Add(HeaderNames.UserAgent, userAgent);