Base:
property
Headers
System.Net.WebRequest.Headers
1 write to Headers
System (1)
net\System\Net\FtpWebRequest.cs (1)
1836GetHttpWebRequest().Headers = value;
39 references to Headers
System (15)
net\System\Net\_AuthenticationState.cs (5)
193httpWebRequest.Headers.Set(AuthorizationHeader, preauth.Message); 253httpWebRequest.Headers.Set(AuthorizationHeader, Authorization.Message); 297httpWebRequest.Headers.Set(AuthorizationHeader, Authorization.Message); 314GlobalLog.Print("AuthenticationState#" + ValidationHelper.HashString(this) + "::ClearAuthReq() httpWebRequest#" + ValidationHelper.HashString(httpWebRequest) + " " + AuthorizationHeader.ToString() + ": " + ValidationHelper.ToString(httpWebRequest.Headers[AuthorizationHeader])); 318httpWebRequest.Headers.Remove(AuthorizationHeader);
net\System\Net\_ConnectStream.cs (1)
2184if (Logging.On) Logging.PrintInfo(Logging.Web, this, SR.GetString(SR.net_log_sending_headers, m_Request.Headers.ToString(true)));
net\System\Net\_CookieModule.cs (2)
28httpWebRequest.Headers.RemoveInternal(HttpKnownHeaderNames.Cookie); 38httpWebRequest.Headers[HttpKnownHeaderNames.Cookie] = cookieString;
net\System\Net\FtpWebRequest.cs (1)
1827return GetHttpWebRequest().Headers;
net\System\Net\WebSockets\ClientWebSocket.cs (3)
224request.Headers.Add(key, options.RequestHeaders[key]); 230request.Headers.Add(HttpKnownHeaderNames.SecWebSocketProtocol, 290request.Headers[HttpKnownHeaderNames.SecWebSocketKey]);
net\System\Net\WebSockets\WebSocketHelpers.cs (3)
361request.Headers[HttpKnownHeaderNames.Upgrade] = WebSocketUpgradeToken; 369request.Headers[HttpKnownHeaderNames.SecWebSocketKey] = Convert.ToBase64String(keyBlob); 372request.Headers[HttpKnownHeaderNames.SecWebSocketVersion] = WebSocketProtocolComponent.SupportedVersion;
System.Data.Services.Client (12)
System\Data\Services\Client\DataServiceContext.cs (11)
1978request.Headers[XmlConstants.HttpXMethod] = method; 1992request.Headers[XmlConstants.HttpDataServiceVersion] = requestVersion.ToString() + Util.VersionSuffix; 1995request.Headers[XmlConstants.HttpMaxDataServiceVersion] = Util.MaxResponseVersion.ToString() + Util.VersionSuffix; 2012requestHeaders = request.Headers; 2038request.Headers[HttpRequestHeader.AcceptCharset] = XmlConstants.Utf8Encoding; 2062request.Headers[XmlConstants.HttpXMethod] = method; 2081headers = request.Headers.AllKeys; 2086request.Headers.Remove(HttpRequestHeader.IfMatch); 2093request.Headers.Remove(XmlConstants.HttpXMethod); 2831request.Headers.Set(HttpRequestHeader.IfMatch, box.ETag); 4732mediaResourceRequest.Headers.Set(HttpRequestHeader.IfMatch, box.StreamETag);
System\Data\Services\Client\WebUtil.cs (1)
151request.Headers[header.Key] = header.Value;
System.Runtime.Remoting (1)
channels\http\httpclientchannel.cs (1)
680httpWebRequest.Headers[key] = header.Value.ToString();
System.ServiceModel (11)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (5)
245request.Headers[WebSocketHelper.SecWebSocketProtocol] = this.WebSocketSettings.SubProtocol; 254request.Headers[WebSocketTransportSettings.SoapContentTypeHeader] = this.channelFactory.WebSocketSoapContentType; 258request.Headers[WebSocketTransportSettings.BinaryEncoderTransferModeHeader] = this.channelFactory.TransferMode.ToString(); 335this.webSocketKey = request.Headers[WebSocketHelper.SecWebSocketKey]; 495request.Headers[WebSocketHelper.SecWebSocketVersion] = webSocketVersion;
System\ServiceModel\Channels\HttpChannelHelpers.cs (5)
2396httpWebRequest.Headers[HttpChannelUtilities.MIMEVersionHeader] = version; 2401httpWebRequest.Headers.Add(name, value); 2411this.httpWebRequest.Headers.Add(HttpChannelUtilities.ContentEncodingHeader, contentEncoding); 2641httpWebRequest.Headers.Add(name, value); 2650httpWebRequest.Headers["SOAPAction"] = action;
System\ServiceModel\Channels\WebSocketHelper.cs (1)
198string version = request.Headers[WebSocketHelper.SecWebSocketVersion];