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