1 override of Protocol
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
127public override string Protocol
23 references to Protocol
Microsoft.AspNetCore.HostFiltering (2)
HostFilteringMiddleware.cs (2)
121_logger.RequestRejectedMissingHost(context.Request.Protocol); 125_logger.RequestAllowedMissingHost(context.Request.Protocol);
Microsoft.AspNetCore.Hosting (8)
Internal\HostingApplicationDiagnostics.cs (2)
82context.MetricsTagsFeature.Protocol = httpContext.Request.Protocol; 527if (HostingTelemetryHelpers.TryGetHttpVersion(httpContext.Request.Protocol, out var httpVersion))
Internal\HostingRequestFinishedLog.cs (3)
394 => new KeyValuePair<string, object?>(nameof(request.Protocol), request.Protocol), 66_cachedToString = $"Request finished {request.Protocol} {request.Method} {request.Scheme}://{request.Host.Value}{request.PathBase.Value}{request.Path.Value}{request.QueryString.Value} - {response.StatusCode.ToString(CultureInfo.InvariantCulture)} {ValueOrEmptyMarker(response.ContentLength)} {EscapedValueOrEmptyMarker(response.ContentType)} {Elapsed.TotalMilliseconds.ToString("0.0000", CultureInfo.InvariantCulture)}ms";
Internal\HostingRequestStartingLog.cs (3)
250 => new KeyValuePair<string, object?>(nameof(_request.Protocol), _request.Protocol), 48_cachedToString = $"Request starting {request.Protocol} {request.Method} {request.Scheme}://{request.Host.Value}{request.PathBase.Value}{request.Path.Value}{request.QueryString.Value} - {EscapedValueOrEmptyMarker(request.ContentType)} {ValueOrEmptyMarker(request.ContentLength)}";
Microsoft.AspNetCore.Http (4)
src\aspnetcore\src\Shared\Debugger\HttpContextDebugFormatter.cs (4)
40if (!string.IsNullOrEmpty(request.Protocol)) 43sb.Append(request.Protocol); 62if (!string.IsNullOrEmpty(context.Request.Protocol)) 65sb.Append(context.Request.Protocol);
Microsoft.AspNetCore.Http.Abstractions (5)
HttpRequest.cs (1)
172public string Protocol => _request.Protocol;
src\aspnetcore\src\Shared\Debugger\HttpContextDebugFormatter.cs (4)
40if (!string.IsNullOrEmpty(request.Protocol)) 43sb.Append(request.Protocol); 62if (!string.IsNullOrEmpty(context.Request.Protocol)) 65sb.Append(context.Request.Protocol);
Microsoft.AspNetCore.HttpLogging (4)
HttpLoggingFields.cs (1)
47/// Flag for logging the HTTP Request <see cref="HttpRequest.Protocol"/>.
HttpLoggingMiddleware.cs (2)
118logContext.AddParameter(nameof(request.Protocol), request.Protocol);
W3CLoggingMiddleware.cs (1)
124shouldLog |= AddToList(elements, _protocolVersionIndex, request.Protocol);