17 references to HasHeaders
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
122if (!isProxyAuth && request.HasHeaders && request.Headers.Host != null)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
359request.HasHeaders &&
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (3)
1491if (request.HasHeaders && request.Headers.Host is string host) 1513if (request.HasHeaders) 1993bool shouldExpectContinue = (request.Content != null && request.HasHeaders && request.Headers.ExpectContinue == true);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
129if (_request.HasHeaders && _request.Headers.ExpectContinue == true)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (4)
159if (_request.HasHeaders && _request.Headers.ExpectContinue == true) 626if (request.HasHeaders && request.Headers.Host is string host) 651if (request.HasHeaders) 654if (request.HasHeaders && request.Headers.TransferEncodingChunked == true)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (5)
320if (!request.HasHeaders || request.Headers.Host is not string host) 347if (!request.HasHeaders || request.Headers.Host is null) 375if (request.HasHeaders || cookiesFromContainer is not null) 567bool hasExpectContinueHeader = request.HasHeaders && request.Headers.ExpectContinue == true; 945bool requestTransferEncodingChunked = request.HasHeaders && request.Headers.TransferEncodingChunked == true;
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (2)
639if (request.HasHeaders && request.Headers.TransferEncodingChunked.GetValueOrDefault()) 657if (request.Version.Minor == 0 && request.Version.Major == 1 && request.HasHeaders)