24 references to Headers
System.Net.HttpListener (24)
System\Net\HttpListenerResponse.cs (17)
38
get =>
Headers
[HttpKnownHeaderNames.ContentType];
44
Headers
.Remove(HttpKnownHeaderNames.ContentType);
48
Headers
.Set(HttpKnownHeaderNames.ContentType, value);
129
get =>
Headers
[HttpResponseHeader.Location];
136
Headers
.Remove(HttpKnownHeaderNames.Location);
140
Headers
.Set(HttpKnownHeaderNames.Location, value);
176
Headers
.Set(name, value);
182
Headers
.Add(name, value);
195
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Entering Set-Cookie: {
Headers
[HttpResponseHeader.SetCookie]}, Set-Cookie2: {
Headers
[HttpKnownHeaderNames.SetCookie2]}");
222
Headers
.Set(HttpKnownHeaderNames.SetCookie, setCookie);
225
Headers
.Remove(HttpKnownHeaderNames.SetCookie2);
231
Headers
.Set(HttpKnownHeaderNames.SetCookie2, setCookie2);
234
Headers
.Remove(HttpKnownHeaderNames.SetCookie);
239
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Exiting Set-Cookie: {
Headers
[HttpResponseHeader.SetCookie]} Set-Cookie2: {
Headers
[HttpKnownHeaderNames.SetCookie2]}");
245
Headers
[HttpResponseHeader.Location] = url;
System\Net\Managed\HttpConnection.cs (1)
517
force = (_context.Response.
Headers
[HttpKnownHeaderNames.Connection] == HttpHeaderStrings.Close);
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
257
Headers
[HttpResponseHeader.KeepAlive] = "true";
System\Net\Managed\ListenerAsyncResult.Managed.cs (1)
151
context.Response.
Headers
["WWW-Authenticate"] = context.AuthenticationSchemes + " realm=\"" + context._listener!.Realm + "\"";
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (4)
40
response.
Headers
.Add(HttpKnownHeaderNames.SecWebSocketProtocol, outgoingSecWebSocketProtocolString);
47
response.
Headers
.Add(HttpKnownHeaderNames.Connection, HttpKnownHeaderNames.Upgrade);
48
response.
Headers
.Add(HttpKnownHeaderNames.Upgrade, WebSocketUpgradeToken);
49
response.
Headers
.Add(HttpKnownHeaderNames.SecWebSocketAccept, secWebSocketAccept);