76 references to HttpRequestHeader
System (18)
net\System\Net\HttpListener.cs (1)
1335string authorizationHeader = UnsafeNclNativeMethods.HttpApi.GetKnownHeader(memoryBlob.RequestBlob, (int) HttpRequestHeader.Authorization);
net\System\Net\HttpListenerRequest.cs (12)
358return Helpers.ParseMultivalueHeader(GetKnownHeader(HttpRequestHeader.Accept)); 393if (HttpWebRequest.ChunkedHeader.Equals(GetKnownHeader(HttpRequestHeader.TransferEncoding), 401string length = GetKnownHeader(HttpRequestHeader.ContentLength); 418return GetKnownHeader(HttpRequestHeader.ContentType); 542string referrer = GetKnownHeader(HttpRequestHeader.Referer); 554return GetKnownHeader(HttpRequestHeader.UserAgent); 566return GetKnownHeader(HttpRequestHeader.Host); 572return Helpers.ParseMultivalueHeader(GetKnownHeader(HttpRequestHeader.AcceptLanguage)); 682string cookieString = GetKnownHeader(HttpRequestHeader.Cookie); 724header = GetKnownHeader(HttpRequestHeader.Connection); 734header = GetKnownHeader(HttpRequestHeader.KeepAlive); 1012private string GetKnownHeader(HttpRequestHeader header) {
net\System\Net\UnsafeNativeMethods.cs (1)
2732const int HttpHeaderRequestMaximum = (int)HttpRequestHeader.UserAgent + 1;
net\System\Net\WebHeaderCollection.cs (4)
268public string this[HttpRequestHeader header] { 316public void Add(HttpRequestHeader header, string value) { 335public void Set(HttpRequestHeader header, string value) { 368public void Remove(HttpRequestHeader header) {
System.Data.Services (9)
System\Data\Services\BatchServiceHost.cs (5)
140get { return this.requestHeaders[HttpRequestHeader.Accept]; } 149get { return this.requestHeaders[HttpRequestHeader.AcceptCharset]; } 155get { return this.requestHeaders[HttpRequestHeader.ContentType]; } 170get { return this.requestHeaders[HttpRequestHeader.IfMatch]; } 176get { return this.requestHeaders[HttpRequestHeader.IfNoneMatch]; }
System\Data\Services\HttpContextServiceHost.cs (4)
83return this.operationContext.IncomingRequest.Headers[HttpRequestHeader.AcceptCharset]; 161return this.operationContext.IncomingRequest.Headers[HttpRequestHeader.IfMatch]; 170return this.operationContext.IncomingRequest.Headers[HttpRequestHeader.IfNoneMatch]; 375get { return this.operationContext.IncomingRequest.Headers[HttpRequestHeader.Host]; }
System.Data.Services.Client (4)
System\Data\Services\Client\DataServiceContext.cs (4)
2038request.Headers[HttpRequestHeader.AcceptCharset] = XmlConstants.Utf8Encoding; 2086request.Headers.Remove(HttpRequestHeader.IfMatch); 2831request.Headers.Set(HttpRequestHeader.IfMatch, box.ETag); 4732mediaResourceRequest.Headers.Set(HttpRequestHeader.IfMatch, box.StreamETag);
System.Net (1)
AssemblyInfo.cs (1)
21[assembly: TypeForwardedToAttribute(typeof(System.Net.HttpRequestHeader))]
System.ServiceModel (7)
System\ServiceModel\Channels\ClientContextProtocol.cs (1)
377property.Headers.Add(HttpRequestHeader.Cookie, cookieHeader);
System\ServiceModel\Channels\HttpHeaderInfo.cs (1)
34private static readonly Type httpRequestHeaderType = typeof(HttpRequestHeader);
System\ServiceModel\Channels\HttpRequestContext.cs (2)
890if (listenerRequest.UserAgent != null && headers[HttpRequestHeader.UserAgent] == null) 892headers.Add(HttpRequestHeader.UserAgent, listenerRequest.UserAgent);
System\ServiceModel\Channels\ServiceContextProtocol.cs (1)
94string cookieHeader = httpRequest.Headers[HttpRequestHeader.Cookie];
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
211string hostHeader = httpRequest.Headers[HttpRequestHeader.Host];
System\UriTemplateMatch.cs (1)
39this.baseUri = UriTemplate.RewriteUri(this.originalBaseUri, this.requestProp.Headers[HttpRequestHeader.Host]);
System.ServiceModel.Web (37)
System\ServiceModel\Description\WebScriptClientGenerator.cs (1)
80string proxyContent = this.GetProxyContent(UriTemplate.RewriteUri(this.endpoint.Address.Uri, requestMessageProperty.Headers[HttpRequestHeader.Host]));
System\ServiceModel\Dispatcher\ContentTypeSettingClientMessageFormatter.cs (2)
85if (string.IsNullOrEmpty(httpProperty.Headers[HttpRequestHeader.ContentType])) 87httpProperty.Headers[HttpRequestHeader.ContentType] = contentType;
System\ServiceModel\Dispatcher\HelpPage.cs (3)
51Uri baseUri = UriTemplate.RewriteUri(OperationContext.Current.Channel.LocalAddress.Uri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]); 66Uri requestUri = UriTemplate.RewriteUri(WebOperationContext.Current.IncomingRequest.UriTemplateMatch.RequestUri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]); 73Uri baseUri = UriTemplate.RewriteUri(OperationContext.Current.Channel.LocalAddress.Uri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]);
System\ServiceModel\Dispatcher\HttpUnhandledOperationInvoker.cs (1)
76Uri helpUri = this.HelpUri != null ? UriTemplate.RewriteUri(this.HelpUri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]) : null;
System\ServiceModel\Dispatcher\WebErrorHandler.cs (1)
138helpUri = this.webHttpBehavior.HelpUri != null ? UriTemplate.RewriteUri(this.webHttpBehavior.HelpUri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]) : null;
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (1)
364hostName = requestProperty.Headers[HttpRequestHeader.Host];
System\ServiceModel\Web\IncomingWebRequestContext.cs (11)
40get { return EnsureMessageProperty().Headers[HttpRequestHeader.Accept]; } 45get { return long.Parse(this.EnsureMessageProperty().Headers[HttpRequestHeader.ContentLength], CultureInfo.InvariantCulture); } 50get { return this.EnsureMessageProperty().Headers[HttpRequestHeader.ContentType]; } 57string ifMatchHeader = MessageProperty.Headers[HttpRequestHeader.IfMatch]; 66string ifNoneMatchHeader = MessageProperty.Headers[HttpRequestHeader.IfNoneMatch]; 75string dateTime = this.MessageProperty.Headers[HttpRequestHeader.IfModifiedSince]; 92string dateTime = this.MessageProperty.Headers[HttpRequestHeader.IfUnmodifiedSince]; 136get { return this.EnsureMessageProperty().Headers[HttpRequestHeader.UserAgent]; } 284string entityTagHeader = this.Headers[HttpRequestHeader.IfNoneMatch]; 315headerOfInterest = this.Headers[HttpRequestHeader.IfNoneMatch]; 325headerOfInterest = this.Headers[HttpRequestHeader.IfMatch];
System\ServiceModel\Web\OutgoingWebRequestContext.cs (16)
25get { return this.MessageProperty.Headers[HttpRequestHeader.Accept]; } 26set { this.MessageProperty.Headers[HttpRequestHeader.Accept] = value; } 31get { return long.Parse(this.MessageProperty.Headers[HttpRequestHeader.ContentLength], CultureInfo.InvariantCulture); } 32set { this.MessageProperty.Headers[HttpRequestHeader.ContentLength] = value.ToString(CultureInfo.InvariantCulture); } 37get { return this.MessageProperty.Headers[HttpRequestHeader.ContentType]; } 38set { this.MessageProperty.Headers[HttpRequestHeader.ContentType] = value; } 48get { return this.MessageProperty.Headers[HttpRequestHeader.IfMatch]; } 49set { this.MessageProperty.Headers[HttpRequestHeader.IfMatch] = value; } 54get { return this.MessageProperty.Headers[HttpRequestHeader.IfModifiedSince]; } 55set { this.MessageProperty.Headers[HttpRequestHeader.IfModifiedSince] = value; } 60get { return this.MessageProperty.Headers[HttpRequestHeader.IfNoneMatch]; } 61set { this.MessageProperty.Headers[HttpRequestHeader.IfNoneMatch] = value; } 66get { return this.MessageProperty.Headers[HttpRequestHeader.IfUnmodifiedSince]; } 67set { this.MessageProperty.Headers[HttpRequestHeader.IfUnmodifiedSince] = value; } 84get { return this.MessageProperty.Headers[HttpRequestHeader.UserAgent]; } 85set { this.MessageProperty.Headers[HttpRequestHeader.UserAgent] = value; }
System\ServiceModel\Web\OutgoingWebResponseContext.cs (1)
59string dateTime = this.MessageProperty.Headers[HttpRequestHeader.LastModified];