42 references to Headers
System (39)
net\System\Net\HttpListener.cs (1)
2014
response.
Headers
.AddInternal(HttpKnownHeaderNames.WWWAuthenticate, challenge);
net\System\Net\HttpListenerResponse.cs (34)
81
return
Headers
[HttpResponseHeader.ContentType];
87
Headers
.Remove(HttpResponseHeader.ContentType);
91
Headers
.Set(HttpResponseHeader.ContentType, value);
106
return
Headers
[HttpResponseHeader.Location];
113
Headers
.Remove(HttpResponseHeader.Location);
117
Headers
.Set(HttpResponseHeader.Location, value);
265
Headers
.SetInternal(name, value);
270
Headers
.Add(name, value);
275
Headers
.SetInternal(HttpResponseHeader.Location, url);
491
for (int i=0; i<
Headers
.Count; i++) {
493
sb.Append(
Headers
.GetKey(i));
495
sb.Append(
Headers
.Get(i));
594
GlobalLog.Print("HttpListenerResponse#" + ValidationHelper.HashString(this) + "::ComputeCookies() entering Set-Cookie: " + ValidationHelper.ToString(
Headers
[HttpResponseHeader.SetCookie]) +" Set-Cookie2: " + ValidationHelper.ToString(
Headers
[HttpKnownHeaderNames.SetCookie2]));
615
Headers
.Set(HttpResponseHeader.SetCookie, setCookie);
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]));
667
Headers
.SetInternal(HttpResponseHeader.ContentLength, m_ContentLength.ToString("D", NumberFormatInfo.InvariantInfo));
673
Headers
.SetInternal(HttpResponseHeader.TransferEncoding, HttpWebRequest.ChunkedHeader);
682
Headers
.Add(HttpResponseHeader.Connection, "close");
691
Headers
.SetInternal(HttpResponseHeader.KeepAlive, "true");
702
Headers
.SetInternal(HttpResponseHeader.WwwAuthenticate, HttpListenerContext.MutualAuthentication);
719
if (
Headers
.Count==0) {
765
for (int index=0; index<
Headers
.Count; index++) {
766
headerName =
Headers
.GetKey(index) as string;
780
string[] headerValues =
Headers
.GetValues(index);
787
for (int index=0; index<
Headers
.Count; index++) {
788
headerName =
Headers
.GetKey(index) as string;
789
headerValue =
Headers
.Get(index) as string;
796
GlobalLog.Print("HttpListenerResponse#" + ValidationHelper.HashString(this) + "::SerializeHeaders(" + index + "/" +
Headers
.Count + ") headerName:" + ValidationHelper.ToString(headerName) + " lookup:" + lookup + " headerValue:" + ValidationHelper.ToString(headerValue));
815
string[] headerValues =
Headers
.GetValues(index);
net\System\Net\WebSockets\WebSocketHelpers.cs (4)
102
response.
Headers
.Add(HttpKnownHeaderNames.SecWebSocketProtocol,
110
response.
Headers
.Add(HttpKnownHeaderNames.Connection, HttpKnownHeaderNames.Upgrade);
111
response.
Headers
.Add(HttpKnownHeaderNames.Upgrade, WebSocketHelpers.WebSocketUpgradeToken);
112
response.
Headers
.Add(HttpKnownHeaderNames.SecWebSocketAccept, secWebSocketAccept);
System.ServiceModel (3)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
2941
listenerResponse.
Headers
[HttpChannelUtilities.MIMEVersionHeader] = version;
System\ServiceModel\Channels\HttpRequestContext.cs (1)
800
HttpChannelUtilities.CopyHeaders(response, this.listenerContext.Response.
Headers
.Add);
System\ServiceModel\Channels\SharedHttpTransportManager.cs (1)
431
listenerContext.Response.
Headers
.Add(HttpResponseHeader.Allow, "POST");