29 references to AddInternal
System (29)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (11)
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");
net\System\Net\Cache\HttpRequestCacheValidator.cs (2)
693
wc.
AddInternal
(lastHeaderName, s);
707
wc.
AddInternal
(lastHeaderName, s.Substring(colpos));
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\HttpWebRequest.cs (10)
3110
_HttpRequestHeaders.
AddInternal
(HeaderName, value);
4998
_HttpRequestHeaders.
AddInternal
(HttpKnownHeaderNames.TransferEncoding, ChunkedHeader);
5007
_HttpRequestHeaders.
AddInternal
(HttpKnownHeaderNames.Expect, ContinueHeader);
5019
_HttpRequestHeaders.
AddInternal
(HttpKnownHeaderNames.AcceptEncoding, GZipHeader + ", " + DeflateHeader);
5022
_HttpRequestHeaders.
AddInternal
(HttpKnownHeaderNames.AcceptEncoding, GZipHeader);
5027
_HttpRequestHeaders.
AddInternal
(HttpKnownHeaderNames.AcceptEncoding, DeflateHeader);
5044
_HttpRequestHeaders.
AddInternal
(HttpKnownHeaderNames.ProxyConnection, _HttpRequestHeaders[HttpKnownHeaderNames.Connection]);
5058
_HttpRequestHeaders.
AddInternal
(HttpKnownHeaderNames.Connection, HttpKnownHeaderNames.Upgrade);
5065
_HttpRequestHeaders.
AddInternal
(( (UsesProxySemantics || IsTunnelRequest)? HttpKnownHeaderNames.ProxyConnection : HttpKnownHeaderNames.Connection), "Keep-Alive");
5069
_HttpRequestHeaders.
AddInternal
(connectionString, "Close");
net\System\Net\UnsafeNativeMethods.cs (2)
3006
headerCollection.
AddInternal
(headerName, headerValue);
3021
headerCollection.
AddInternal
(HTTP_REQUEST_HEADER_ID.ToString(index), headerValue);
net\System\Net\WebHeaderCollection.cs (1)
1495
AddInternal
(headerName, headerMultiLineValue);