327 references to HttpKnownHeaderNames
System (327)
net\System\Net\_AuthenticationState.cs (2)
77
return IsProxyAuth ?
HttpKnownHeaderNames
.ProxyAuthorization :
HttpKnownHeaderNames
.Authorization;
net\System\Net\_Connection.cs (3)
2180
string transferEncodingString = m_ResponseData.m_ResponseHeaders[
HttpKnownHeaderNames
.TransferEncoding];
2300
string connection = m_ResponseData.m_ResponseHeaders[
HttpKnownHeaderNames
.Connection];
2305
connection = m_ResponseData.m_ResponseHeaders[
HttpKnownHeaderNames
.ProxyConnection];
net\System\Net\_CookieModule.cs (4)
28
httpWebRequest.Headers.RemoveInternal(
HttpKnownHeaderNames
.Cookie);
38
httpWebRequest.Headers[
HttpKnownHeaderNames
.Cookie] = cookieString;
81
HttpKnownHeaderNames
.SetCookie,
95
HttpKnownHeaderNames
.SetCookie2,
net\System\Net\_HeaderInfoTable.cs (52)
93
new HeaderInfo(
HttpKnownHeaderNames
.Age, false, false, false, SingleParser),
94
new HeaderInfo(
HttpKnownHeaderNames
.Allow, false, false, true, MultiParser),
95
new HeaderInfo(
HttpKnownHeaderNames
.Accept, true, false, true, MultiParser),
96
new HeaderInfo(
HttpKnownHeaderNames
.Authorization, false, false, true, MultiParser),
97
new HeaderInfo(
HttpKnownHeaderNames
.AcceptRanges, false, false, true, MultiParser),
98
new HeaderInfo(
HttpKnownHeaderNames
.AcceptCharset, false, false, true, MultiParser),
99
new HeaderInfo(
HttpKnownHeaderNames
.AcceptEncoding, false, false, true, MultiParser),
100
new HeaderInfo(
HttpKnownHeaderNames
.AcceptLanguage, false, false, true, MultiParser),
101
new HeaderInfo(
HttpKnownHeaderNames
.Cookie, false, false, true, MultiParser),
102
new HeaderInfo(
HttpKnownHeaderNames
.Connection, true, false, true, MultiParser),
103
new HeaderInfo(
HttpKnownHeaderNames
.ContentMD5, false, false, false, SingleParser),
104
new HeaderInfo(
HttpKnownHeaderNames
.ContentType, true, false, false, SingleParser),
105
new HeaderInfo(
HttpKnownHeaderNames
.CacheControl, false, false, true, MultiParser),
106
new HeaderInfo(
HttpKnownHeaderNames
.ContentRange, false, false, false, SingleParser),
107
new HeaderInfo(
HttpKnownHeaderNames
.ContentLength, true, true, false, SingleParser),
108
new HeaderInfo(
HttpKnownHeaderNames
.ContentEncoding, false, false, true, MultiParser),
109
new HeaderInfo(
HttpKnownHeaderNames
.ContentLanguage, false, false, true, MultiParser),
110
new HeaderInfo(
HttpKnownHeaderNames
.ContentLocation, false, false, false, SingleParser),
111
new HeaderInfo(
HttpKnownHeaderNames
.Date, true, false, false, SingleParser),
112
new HeaderInfo(
HttpKnownHeaderNames
.ETag, false, false, false, SingleParser),
113
new HeaderInfo(
HttpKnownHeaderNames
.Expect, true, false, true, MultiParser),
114
new HeaderInfo(
HttpKnownHeaderNames
.Expires, false, false, false, SingleParser),
115
new HeaderInfo(
HttpKnownHeaderNames
.From, false, false, false, SingleParser),
116
new HeaderInfo(
HttpKnownHeaderNames
.Host, true, false, false, SingleParser),
117
new HeaderInfo(
HttpKnownHeaderNames
.IfMatch, false, false, true, MultiParser),
118
new HeaderInfo(
HttpKnownHeaderNames
.IfRange, false, false, false, SingleParser),
119
new HeaderInfo(
HttpKnownHeaderNames
.IfNoneMatch, false, false, true, MultiParser),
120
new HeaderInfo(
HttpKnownHeaderNames
.IfModifiedSince, true, false, false, SingleParser),
121
new HeaderInfo(
HttpKnownHeaderNames
.IfUnmodifiedSince, false, false, false, SingleParser),
122
new HeaderInfo(
HttpKnownHeaderNames
.KeepAlive, false, true, false, SingleParser),
123
new HeaderInfo(
HttpKnownHeaderNames
.Location, false, false, false, SingleParser),
124
new HeaderInfo(
HttpKnownHeaderNames
.LastModified, false, false, false, SingleParser),
125
new HeaderInfo(
HttpKnownHeaderNames
.MaxForwards, false, false, false, SingleParser),
126
new HeaderInfo(
HttpKnownHeaderNames
.Pragma, false, false, true, MultiParser),
127
new HeaderInfo(
HttpKnownHeaderNames
.ProxyAuthenticate, false, false, true, MultiParser),
128
new HeaderInfo(
HttpKnownHeaderNames
.ProxyAuthorization, false, false, true, MultiParser),
129
new HeaderInfo(
HttpKnownHeaderNames
.ProxyConnection, true, false, true, MultiParser),
130
new HeaderInfo(
HttpKnownHeaderNames
.Range, true, false, true, MultiParser),
131
new HeaderInfo(
HttpKnownHeaderNames
.Referer, true, false, false, SingleParser),
132
new HeaderInfo(
HttpKnownHeaderNames
.RetryAfter, false, false, false, SingleParser),
133
new HeaderInfo(
HttpKnownHeaderNames
.Server, false, false, false, SingleParser),
134
new HeaderInfo(
HttpKnownHeaderNames
.SetCookie, false, false, true, SetCookieParser),
135
new HeaderInfo(
HttpKnownHeaderNames
.SetCookie2, false, false, true, SetCookieParser),
136
new HeaderInfo(
HttpKnownHeaderNames
.TE, false, false, true, MultiParser),
137
new HeaderInfo(
HttpKnownHeaderNames
.Trailer, false, false, true, MultiParser),
138
new HeaderInfo(
HttpKnownHeaderNames
.TransferEncoding, true, true, true, MultiParser),
139
new HeaderInfo(
HttpKnownHeaderNames
.Upgrade, false, false, true, MultiParser),
140
new HeaderInfo(
HttpKnownHeaderNames
.UserAgent, true, false, false, SingleParser),
141
new HeaderInfo(
HttpKnownHeaderNames
.Via, false, false, true, MultiParser),
142
new HeaderInfo(
HttpKnownHeaderNames
.Vary, false, false, true, MultiParser),
143
new HeaderInfo(
HttpKnownHeaderNames
.Warning, false, false, true, MultiParser),
144
new HeaderInfo(
HttpKnownHeaderNames
.WWWAuthenticate, false, true, true, SingleParser)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (76)
62
ctx.Request.Headers.RemoveInternal(
HttpKnownHeaderNames
.Pragma);
68
ctx.Request.Headers.RemoveInternal(
HttpKnownHeaderNames
.CacheControl);
73
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.CacheControl, "no-store");
74
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.CacheControl, "no-cache");
75
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.Pragma, "no-cache");
83
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.CacheControl, "no-cache");
84
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.Pragma, "no-cache");
90
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.CacheControl, "max-age=0");
91
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.Pragma, "no-cache");
98
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.CacheControl, "min-fresh=" + (int)ctx.Policy.MinFresh.TotalSeconds);
101
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.CacheControl, "max-age=" + (int)ctx.Policy.MaxAge.TotalSeconds);
104
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.CacheControl, "max-stale=" + (int)ctx.Policy.MaxStale.TotalSeconds);
110
ctx.Request.Headers.AddInternal(
HttpKnownHeaderNames
.CacheControl, "only-if-cached");
236
if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_server_didnt_satisfy_range, ctx.Request.Headers[
HttpKnownHeaderNames
.Range]));
294
ctx.Request.Headers.RemoveInternal(
HttpKnownHeaderNames
.Range);
474
if (ctx.Request.Headers[
HttpKnownHeaderNames
.IfModifiedSince] != null ||
475
ctx.Request.Headers[
HttpKnownHeaderNames
.IfNoneMatch] != null ||
476
ctx.Request.Headers[
HttpKnownHeaderNames
.IfRange] != null ||
477
ctx.Request.Headers[
HttpKnownHeaderNames
.IfMatch] != null ||
478
ctx.Request.Headers[
HttpKnownHeaderNames
.IfUnmodifiedSince] != null )
816
if (!ctx.CacheEntry.IsPrivateEntry && ctx.Request.Headers[
HttpKnownHeaderNames
.Authorization] != null) {
1018
if (ctx.Request.Headers[
HttpKnownHeaderNames
.Authorization] != null) {
1067
if (resp.Headers[
HttpKnownHeaderNames
.ContentMD5] != ctx.CacheHeaders[
HttpKnownHeaderNames
.ContentMD5]) {
1137
ctx.CacheHeaders.Remove(
HttpKnownHeaderNames
.ContentRange);
1140
{ctx.CacheHeaders.Remove(
HttpKnownHeaderNames
.ContentLength);}
1142
{ctx.CacheHeaders[
HttpKnownHeaderNames
.ContentLength] = ctx.CacheStreamLength.ToString(NumberFormatInfo.InvariantInfo);}
1185
((location=cc[
HttpKnownHeaderNames
.ContentLocation]) != null && location != ctx.CacheHeaders[
HttpKnownHeaderNames
.ContentLocation]) ||
1217
if (cc[
HttpKnownHeaderNames
.Connection] != null) {
1220
if (cc[
HttpKnownHeaderNames
.KeepAlive] != null) {
1226
if (cc[
HttpKnownHeaderNames
.ProxyAuthorization] != null) {
1229
if (cc[
HttpKnownHeaderNames
.TE] != null) {
1232
if (cc[
HttpKnownHeaderNames
.TransferEncoding] != null) {
1235
if (cc[
HttpKnownHeaderNames
.Trailer] != null) {
1238
if (cc[
HttpKnownHeaderNames
.Upgrade] != null) {
1299
ctx.CacheHeaders.Add(
HttpKnownHeaderNames
.Warning, HttpRequestCacheValidator.Warning_111);
1334
string[] cacheVary = ctx.CacheHeaders.GetValues(
HttpKnownHeaderNames
.Vary);
1430
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_range, ctx.Request.Headers[
HttpKnownHeaderNames
.Range]));
1490
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_range_in_cache, ctx.CacheHeaders[
HttpKnownHeaderNames
.ContentRange]));
1507
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_partial_resp, ctx.CacheHeaders[
HttpKnownHeaderNames
.ContentRange]));
1519
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_range, ctx.Request.Headers[
HttpKnownHeaderNames
.Range]));
1535
if ((ranges = ctx.Request.Headers[
HttpKnownHeaderNames
.Range]) != null) {
1539
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_range_request_range, ctx.Request.Headers[
HttpKnownHeaderNames
.Range]));
1596
ctx.Request.Headers[
HttpKnownHeaderNames
.IfNoneMatch] = str;
1597
ctx.RequestIfHeader1 =
HttpKnownHeaderNames
.IfNoneMatch;
1600
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_condition_if_none_match, ctx.Request.Headers[
HttpKnownHeaderNames
.IfNoneMatch]));
1606
ctx.Request.Headers.ChangeInternal(
HttpKnownHeaderNames
.IfModifiedSince, str);
1608
ctx.RequestIfHeader2 =
HttpKnownHeaderNames
.IfModifiedSince;
1612
ctx.RequestIfHeader1 =
HttpKnownHeaderNames
.IfModifiedSince;
1615
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_condition_if_modified_since, ctx.Request.Headers[
HttpKnownHeaderNames
.IfModifiedSince]));
1651
ctx.Request.Headers[
HttpKnownHeaderNames
.IfRange] = str;
1652
ctx.RequestIfHeader1 =
HttpKnownHeaderNames
.IfRange;
1654
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_condition_if_range, ctx.Request.Headers[
HttpKnownHeaderNames
.IfRange]));
1686
ctx.Request.Headers[
HttpKnownHeaderNames
.IfRange] = str;
1687
ctx.RequestIfHeader1 =
HttpKnownHeaderNames
.IfRange;
1689
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_condition_if_range, ctx.Request.Headers[
HttpKnownHeaderNames
.IfRange]));
1710
ctx.CacheHeaders[
HttpKnownHeaderNames
.ContentRange] = ranges;
1711
ctx.CacheHeaders[
HttpKnownHeaderNames
.ContentLength] = ctx.CacheStreamLength.ToString(NumberFormatInfo.InvariantInfo);
1723
ctx.CacheHeaders.Remove(
HttpKnownHeaderNames
.ContentRange);
1726
{ctx.CacheHeaders.Remove(
HttpKnownHeaderNames
.ContentLength);}
1728
{ctx.CacheHeaders[
HttpKnownHeaderNames
.ContentLength] = ctx.CacheEntityLength.ToString(NumberFormatInfo.InvariantInfo);}
1737
cc[
HttpKnownHeaderNames
.CacheControl]="max-age=0";
1738
cc[
HttpKnownHeaderNames
.Pragma]="no-cache";
1749
cc.RemoveInternal(
HttpKnownHeaderNames
.Range);
1778
string[] respVary = resp.Headers.GetValues(
HttpKnownHeaderNames
.Vary);
1786
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_saving_request_headers, resp.Headers[
HttpKnownHeaderNames
.Vary]));
1819
if (AsciiLettersNoCaseEqual(key,
HttpKnownHeaderNames
.Connection) ||
1820
AsciiLettersNoCaseEqual(key,
HttpKnownHeaderNames
.KeepAlive) ||
1821
AsciiLettersNoCaseEqual(key,
HttpKnownHeaderNames
.ProxyAuthenticate) ||
1822
AsciiLettersNoCaseEqual(key,
HttpKnownHeaderNames
.ProxyAuthorization) ||
1823
AsciiLettersNoCaseEqual(key,
HttpKnownHeaderNames
.TE) ||
1824
AsciiLettersNoCaseEqual(key,
HttpKnownHeaderNames
.TransferEncoding) ||
1825
AsciiLettersNoCaseEqual(key,
HttpKnownHeaderNames
.Trailer) ||
1826
AsciiLettersNoCaseEqual(key,
HttpKnownHeaderNames
.Upgrade))
1831
if (resp.StatusCode == HttpStatusCode.NotModified && AsciiLettersNoCaseEqual(key,
HttpKnownHeaderNames
.ContentLength)) {
net\System\Net\Cache\HttpRequestCacheValidator.cs (13)
300
CacheHeaders.Add(
HttpKnownHeaderNames
.Warning, HttpRequestCacheValidator.Warning_110);
303
CacheHeaders.Add(
HttpKnownHeaderNames
.Warning, HttpRequestCacheValidator.Warning_112);
306
CacheHeaders.Add(
HttpKnownHeaderNames
.Warning, HttpRequestCacheValidator.Warning_113);
315
CacheHeaders[
HttpKnownHeaderNames
.Age] = ((int)(CacheAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo);
359
CacheHeaders.Add(
HttpKnownHeaderNames
.Warning, HttpRequestCacheValidator.Warning_110);
362
CacheHeaders.Add(
HttpKnownHeaderNames
.Warning, HttpRequestCacheValidator.Warning_113);
389
CacheHeaders[
HttpKnownHeaderNames
.Age] = ((int)(CacheAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo);
424
?", Content-Range: " + resp.Headers[
HttpKnownHeaderNames
.ContentRange]
799
s = cc[
HttpKnownHeaderNames
.ContentRange];
828
s = cc[
HttpKnownHeaderNames
.Age];
1157
string[] warnings = CacheHeaders.GetValues(
HttpKnownHeaderNames
.Warning);
1163
CacheHeaders.Remove(
HttpKnownHeaderNames
.Warning);
1165
CacheHeaders.Add(
HttpKnownHeaderNames
.Warning, (string)remainingWarnings[i]);
net\System\Net\cookiecontainer.cs (2)
103
new HeaderVariantInfo(
HttpKnownHeaderNames
.SetCookie, CookieVariant.Rfc2109),
104
new HeaderVariantInfo(
HttpKnownHeaderNames
.SetCookie2, CookieVariant.Rfc2965)
net\System\Net\filewebresponse.cs (2)
58
m_headers.AddInternal(
HttpKnownHeaderNames
.ContentLength, m_contentLength.ToString(NumberFormatInfo.InvariantInfo));
59
m_headers.AddInternal(
HttpKnownHeaderNames
.ContentType, DefaultFileContentType);
net\System\Net\HttpListener.cs (1)
2014
response.Headers.AddInternal(
HttpKnownHeaderNames
.WWWAuthenticate, challenge);
net\System\Net\HttpListenerRequest.cs (6)
483
if (string.IsNullOrEmpty(this.Headers[
HttpKnownHeaderNames
.Connection]) || string.IsNullOrEmpty(this.Headers[
HttpKnownHeaderNames
.Upgrade]))
488
foreach (string connection in this.Headers.GetValues(
HttpKnownHeaderNames
.Connection))
490
if (string.Compare(connection,
HttpKnownHeaderNames
.Upgrade, StringComparison.OrdinalIgnoreCase) == 0)
502
foreach (string upgrade in this.Headers.GetValues(
HttpKnownHeaderNames
.Upgrade))
721
string header = Headers[
HttpKnownHeaderNames
.ProxyConnection];
net\System\Net\HttpListenerResponse.cs (5)
594
GlobalLog.Print("HttpListenerResponse#" + ValidationHelper.HashString(this) + "::ComputeCookies() entering Set-Cookie: " + ValidationHelper.ToString(Headers[HttpResponseHeader.SetCookie]) +" Set-Cookie2: " + ValidationHelper.ToString(Headers[
HttpKnownHeaderNames
.SetCookie2]));
618
Headers.Remove(
HttpKnownHeaderNames
.SetCookie2);
623
Headers.Set(
HttpKnownHeaderNames
.SetCookie2, setCookie2);
626
Headers.Remove(
HttpKnownHeaderNames
.SetCookie);
630
GlobalLog.Print("HttpListenerResponse#" + ValidationHelper.HashString(this) + "::ComputeCookies() exiting Set-Cookie: " + ValidationHelper.ToString(Headers[HttpResponseHeader.SetCookie]) +" Set-Cookie2: " + ValidationHelper.ToString(Headers[
HttpKnownHeaderNames
.SetCookie2]));
net\System\Net\HttpWebRequest.cs (52)
1156
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.TransferEncoding);
1199
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.TransferEncoding);
2764
return _HttpRequestHeaders[
HttpKnownHeaderNames
.ContentType];
2767
SetSpecialHeaders(
HttpKnownHeaderNames
.ContentType, value);
2790
return _HttpRequestHeaders[
HttpKnownHeaderNames
.TransferEncoding];
2804
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.TransferEncoding);
2826
_HttpRequestHeaders.CheckUpdate(
HttpKnownHeaderNames
.TransferEncoding, value);
2841
return _HttpRequestHeaders[
HttpKnownHeaderNames
.Connection];
2854
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.Connection);
2872
_HttpRequestHeaders.CheckUpdate(
HttpKnownHeaderNames
.Connection, value);
2887
return _HttpRequestHeaders[
HttpKnownHeaderNames
.Accept];
2890
SetSpecialHeaders(
HttpKnownHeaderNames
.Accept, value);
2901
return _HttpRequestHeaders[
HttpKnownHeaderNames
.Referer];
2904
SetSpecialHeaders(
HttpKnownHeaderNames
.Referer, value);
2915
return _HttpRequestHeaders[
HttpKnownHeaderNames
.UserAgent];
2918
SetSpecialHeaders(
HttpKnownHeaderNames
.UserAgent, value);
2942
return _HttpRequestHeaders[
HttpKnownHeaderNames
.Expect];
2956
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.Expect);
2972
_HttpRequestHeaders.CheckUpdate(
HttpKnownHeaderNames
.Expect, value);
3015
return GetDateHeaderHelper(
HttpKnownHeaderNames
.IfModifiedSince);
3018
SetDateHeaderHelper(
HttpKnownHeaderNames
.IfModifiedSince, value);
3029
return GetDateHeaderHelper(
HttpKnownHeaderNames
.Date);
3032
SetDateHeaderHelper(
HttpKnownHeaderNames
.Date, value);
4969
_HttpRequestHeaders.ChangeInternal(
HttpKnownHeaderNames
.Host, host);
4998
_HttpRequestHeaders.AddInternal(
HttpKnownHeaderNames
.TransferEncoding, ChunkedHeader);
5003
_HttpRequestHeaders.ChangeInternal(
HttpKnownHeaderNames
.ContentLength, _ContentLength.ToString(NumberFormatInfo.InvariantInfo));
5007
_HttpRequestHeaders.AddInternal(
HttpKnownHeaderNames
.Expect, ContinueHeader);
5013
string acceptEncodingValues = _HttpRequestHeaders.Get(
HttpKnownHeaderNames
.AcceptEncoding) ?? String.Empty;
5019
_HttpRequestHeaders.AddInternal(
HttpKnownHeaderNames
.AcceptEncoding, GZipHeader + ", " + DeflateHeader);
5022
_HttpRequestHeaders.AddInternal(
HttpKnownHeaderNames
.AcceptEncoding, GZipHeader);
5027
_HttpRequestHeaders.AddInternal(
HttpKnownHeaderNames
.AcceptEncoding, DeflateHeader);
5039
string connectionString =
HttpKnownHeaderNames
.Connection;
5041
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.Connection);
5042
connectionString =
HttpKnownHeaderNames
.ProxyConnection;
5044
_HttpRequestHeaders.AddInternal(
HttpKnownHeaderNames
.ProxyConnection, _HttpRequestHeaders[
HttpKnownHeaderNames
.Connection]);
5048
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.ProxyConnection);
5055
string connectionValues = _HttpRequestHeaders.Get(
HttpKnownHeaderNames
.Connection) ?? String.Empty;
5056
if (connectionValues.IndexOf(
HttpKnownHeaderNames
.Upgrade, StringComparison.OrdinalIgnoreCase) < 0)
5058
_HttpRequestHeaders.AddInternal(
HttpKnownHeaderNames
.Connection,
HttpKnownHeaderNames
.Upgrade);
5065
_HttpRequestHeaders.AddInternal(( (UsesProxySemantics || IsTunnelRequest)?
HttpKnownHeaderNames
.ProxyConnection :
HttpKnownHeaderNames
.Connection), "Keep-Alive");
5879
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.Referer);
5979
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.Host);
5980
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.Connection);
5981
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.ProxyConnection);
5982
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.ContentLength);
5983
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.TransferEncoding);
5984
_HttpRequestHeaders.RemoveInternal(
HttpKnownHeaderNames
.Expect);
6278
string curRange = _HttpRequestHeaders[
HttpKnownHeaderNames
.Range];
6293
_HttpRequestHeaders.SetAddVerified(
HttpKnownHeaderNames
.Range, curRange);
net\System\Net\HttpWebResponse.cs (7)
173
string contentEncoding = m_HttpResponseHeaders[
HttpKnownHeaderNames
.ContentEncoding];
353
string proxyConnectionHeader = Headers[
HttpKnownHeaderNames
.ProxyConnection];
361
string connectionHeader = Headers[
HttpKnownHeaderNames
.Connection];
529
string contentLocation = m_HttpResponseHeaders[
HttpKnownHeaderNames
.ContentLocation];
540
string contentEncoding = m_HttpResponseHeaders[
HttpKnownHeaderNames
.ContentEncoding];
550
m_HttpResponseHeaders[
HttpKnownHeaderNames
.ContentEncoding] = null;
560
m_HttpResponseHeaders[
HttpKnownHeaderNames
.ContentEncoding] = null;
net\System\Net\webclient.cs (19)
605
string contentType = m_headers[
HttpKnownHeaderNames
.ContentType];
626
m_headers[
HttpKnownHeaderNames
.ContentType] = UploadFileContentType + "; boundary=" + boundary;
649
m_headers[
HttpKnownHeaderNames
.ContentType] = contentType;
745
string contentType = m_headers[
HttpKnownHeaderNames
.ContentType];
750
m_headers[
HttpKnownHeaderNames
.ContentType] = UploadValuesContentType;
920
string accept = m_headers[
HttpKnownHeaderNames
.Accept];
921
string connection = m_headers[
HttpKnownHeaderNames
.Connection];
922
string contentType = m_headers[
HttpKnownHeaderNames
.ContentType];
923
string expect = m_headers[
HttpKnownHeaderNames
.Expect];
924
string referrer = m_headers[
HttpKnownHeaderNames
.Referer];
925
string userAgent = m_headers[
HttpKnownHeaderNames
.UserAgent];
926
string host = m_headers[
HttpKnownHeaderNames
.Host];
928
m_headers.RemoveInternal(
HttpKnownHeaderNames
.Accept);
929
m_headers.RemoveInternal(
HttpKnownHeaderNames
.Connection);
930
m_headers.RemoveInternal(
HttpKnownHeaderNames
.ContentType);
931
m_headers.RemoveInternal(
HttpKnownHeaderNames
.Expect);
932
m_headers.RemoveInternal(
HttpKnownHeaderNames
.Referer);
933
m_headers.RemoveInternal(
HttpKnownHeaderNames
.UserAgent);
934
m_headers.RemoveInternal(
HttpKnownHeaderNames
.Host);
net\System\Net\WebHeaderCollection.cs (18)
65
HttpKnownHeaderNames
.AcceptRanges, // "Accept-Ranges" 13
66
HttpKnownHeaderNames
.ContentLength, // "Content-Length" 14
67
HttpKnownHeaderNames
.CacheControl, // "Cache-Control" 13
68
HttpKnownHeaderNames
.ContentType, // "Content-Type" 12
69
HttpKnownHeaderNames
.Date, // "Date" 4
70
HttpKnownHeaderNames
.Expires, // "Expires" 7
71
HttpKnownHeaderNames
.ETag, // "ETag" 4
72
HttpKnownHeaderNames
.LastModified, // "Last-Modified" 13
73
HttpKnownHeaderNames
.Location, // "Location" 8
74
HttpKnownHeaderNames
.ProxyAuthenticate, // "Proxy-Authenticate" 18
75
HttpKnownHeaderNames
.P3P, // "P3P" 3
76
HttpKnownHeaderNames
.SetCookie2, // "Set-Cookie2" 11
77
HttpKnownHeaderNames
.SetCookie, // "Set-Cookie" 10
78
HttpKnownHeaderNames
.Server, // "Server" 6
79
HttpKnownHeaderNames
.Via, // "Via" 3
80
HttpKnownHeaderNames
.WWWAuthenticate, // "WWW-Authenticate" 16
81
HttpKnownHeaderNames
.XAspNetVersion, // "X-AspNet-Version" 16
82
HttpKnownHeaderNames
.XPoweredBy, // "X-Powered-By" 12
net\System\Net\WebSockets\ClientWebSocket.cs (10)
230
request.Headers.Add(
HttpKnownHeaderNames
.SecWebSocketProtocol,
270
string upgradeHeader = response.Headers[
HttpKnownHeaderNames
.Upgrade];
275
HttpKnownHeaderNames
.Upgrade, upgradeHeader));
279
string connectionHeader = response.Headers[
HttpKnownHeaderNames
.Connection];
280
if (!string.Equals(connectionHeader,
HttpKnownHeaderNames
.Upgrade,
284
HttpKnownHeaderNames
.Connection, connectionHeader));
288
string websocketAcceptHeader = response.Headers[
HttpKnownHeaderNames
.SecWebSocketAccept];
290
request.Headers[
HttpKnownHeaderNames
.SecWebSocketKey]);
294
HttpKnownHeaderNames
.SecWebSocketAccept, websocketAcceptHeader));
299
string subProtocol = response.Headers[
HttpKnownHeaderNames
.SecWebSocketProtocol];
net\System\Net\WebSockets\WebSocketHelpers.cs (27)
86
string secWebSocketVersion = request.Headers[
HttpKnownHeaderNames
.SecWebSocketVersion];
89
string origin = request.Headers[
HttpKnownHeaderNames
.Origin];
95
request.Headers[
HttpKnownHeaderNames
.SecWebSocketProtocol],
102
response.Headers.Add(
HttpKnownHeaderNames
.SecWebSocketProtocol,
107
string secWebSocketKey = request.Headers[
HttpKnownHeaderNames
.SecWebSocketKey];
110
response.Headers.Add(
HttpKnownHeaderNames
.Connection,
HttpKnownHeaderNames
.Upgrade);
111
response.Headers.Add(
HttpKnownHeaderNames
.Upgrade, WebSocketHelpers.WebSocketUpgradeToken);
112
response.Headers.Add(
HttpKnownHeaderNames
.SecWebSocketAccept, secWebSocketAccept);
128
HttpKnownHeaderNames
.Origin, origin));
130
HttpKnownHeaderNames
.SecWebSocketVersion, secWebSocketVersion));
132
HttpKnownHeaderNames
.SecWebSocketKey, secWebSocketKey));
134
HttpKnownHeaderNames
.SecWebSocketAccept, secWebSocketAccept));
136
HttpKnownHeaderNames
.SecWebSocketProtocol,
137
request.Headers[
HttpKnownHeaderNames
.SecWebSocketProtocol]));
139
HttpKnownHeaderNames
.SecWebSocketProtocol, outgoingSecWebSocketProtocolString));
325
HttpKnownHeaderNames
.Connection,
326
HttpKnownHeaderNames
.Upgrade,
328
context.Request.Headers[
HttpKnownHeaderNames
.Upgrade]));
331
string secWebSocketVersion = context.Request.Headers[
HttpKnownHeaderNames
.SecWebSocketVersion];
337
HttpKnownHeaderNames
.SecWebSocketVersion));
349
if (string.IsNullOrWhiteSpace(context.Request.Headers[
HttpKnownHeaderNames
.SecWebSocketKey]))
354
HttpKnownHeaderNames
.SecWebSocketKey));
360
request.Connection =
HttpKnownHeaderNames
.Upgrade;
361
request.Headers[
HttpKnownHeaderNames
.Upgrade] = WebSocketUpgradeToken;
369
request.Headers[
HttpKnownHeaderNames
.SecWebSocketKey] = Convert.ToBase64String(keyBlob);
372
request.Headers[
HttpKnownHeaderNames
.SecWebSocketVersion] = WebSocketProtocolComponent.SupportedVersion;
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (28)
40
Name =
HttpKnownHeaderNames
.Connection,
41
NameLength = (uint)
HttpKnownHeaderNames
.Connection.Length,
42
Value =
HttpKnownHeaderNames
.Upgrade,
43
ValueLength = (uint)
HttpKnownHeaderNames
.Upgrade.Length
47
Name =
HttpKnownHeaderNames
.Upgrade,
48
NameLength = (uint)
HttpKnownHeaderNames
.Upgrade.Length,
160
Name =
HttpKnownHeaderNames
.Connection,
161
NameLength = (uint)
HttpKnownHeaderNames
.Connection.Length,
162
Value =
HttpKnownHeaderNames
.Upgrade,
163
ValueLength = (uint)
HttpKnownHeaderNames
.Upgrade.Length
167
Name =
HttpKnownHeaderNames
.Upgrade,
168
NameLength = (uint)
HttpKnownHeaderNames
.Upgrade.Length,
174
Name =
HttpKnownHeaderNames
.Host,
175
NameLength = (uint)
HttpKnownHeaderNames
.Host.Length,
181
Name =
HttpKnownHeaderNames
.SecWebSocketVersion,
182
NameLength = (uint)
HttpKnownHeaderNames
.SecWebSocketVersion.Length,
188
Name =
HttpKnownHeaderNames
.SecWebSocketKey,
189
NameLength = (uint)
HttpKnownHeaderNames
.SecWebSocketKey.Length,
397
HttpKnownHeaderNames
.SecWebSocketVersion,
467
HttpKnownHeaderNames
.SecWebSocketKey,
481
Name =
HttpKnownHeaderNames
.Connection,
482
NameLength = (uint)
HttpKnownHeaderNames
.Connection.Length,
483
Value =
HttpKnownHeaderNames
.Upgrade,
484
ValueLength = (uint)
HttpKnownHeaderNames
.Upgrade.Length
488
Name =
HttpKnownHeaderNames
.Upgrade,
489
NameLength = (uint)
HttpKnownHeaderNames
.Upgrade.Length,
495
Name =
HttpKnownHeaderNames
.SecWebSocketAccept,
496
NameLength = (uint)
HttpKnownHeaderNames
.SecWebSocketAccept.Length,