1 write to _sendRequestMessage
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1175
_sendRequestMessage
= new HttpRequestMessage(HttpMethod.Parse(_originVerb), _requestUri);
14 references to _sendRequestMessage
System.Net.Requests (14)
System\Net\HttpWebRequest.cs (14)
1181
_sendRequestMessage
.Content = content;
1186
_sendRequestMessage
.Headers.Host = Host;
1189
AddCacheControlHeaders(
_sendRequestMessage
);
1200
_sendRequestMessage
.Content ??= new ByteArrayContent(Array.Empty<byte>());
1201
_sendRequestMessage
.Content.Headers.TryAddWithoutValidation(headerName, _webHeaderCollection[headerName!]);
1205
_sendRequestMessage
.Headers.TryAddWithoutValidation(headerName, _webHeaderCollection[headerName!]);
1211
_sendRequestMessage
.Headers.ExpectContinue = true;
1214
_sendRequestMessage
.Headers.TransferEncodingChunked = SendChunked;
1218
_sendRequestMessage
.Headers.Connection.Add(HttpKnownHeaderNames.KeepAlive);
1222
_sendRequestMessage
.Headers.ConnectionClose = true;
1225
_sendRequestMessage
.Version = ProtocolVersion;
1230
_httpClient.SendAsync(
_sendRequestMessage
, completionOption, _sendRequestCts.Token) :
1231
Task.FromResult(_httpClient.Send(
_sendRequestMessage
, completionOption, _sendRequestCts.Token));
1272
_sendRequestMessage
?.Dispose();