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