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