l.s.w.s.LaunchpadBrowserResponse(NotificationResponse, BrowserResponse) : class documentation

Part of lp.services.webapp.servers View In Hierarchy

Known subclasses: lp.services.webapp.servers.LaunchpadTestResponse

No class docstring
Method __init__ Undocumented
Method setHeader Undocumented
Method addHeader Undocumented
Method redirect Do a redirect.
Method _validateHeader Undocumented

Inherited from NotificationResponse:

Method addNotification See INotificationResponse.
Method notifications Undocumented
Method removeAllNotifications See lp.services.webapp.interfaces.INotificationResponse
Method addDebugNotification See INotificationResponse.
Method addInfoNotification See INotificationResponse.
Method addWarningNotification See INotificationResponse.
Method addErrorNotification See INotificationResponse.
def __init__(self, header_output=None, http_transaction=None):
Undocumented
def _validateHeader(self, name, value):
Undocumented
def setHeader(self, name, value, literal=False):
Undocumented
def addHeader(self, name, value):
Undocumented
def redirect(self, location, status=None, trusted=True, temporary_if_possible=False):
Do a redirect.

Unlike Zope's BrowserResponse.redirect(), consider all redirects to be trusted. Otherwise we'd have to change all callsites that redirect from lp.net to vhost.lp.net to pass trusted=True.

If temporary_if_possible is True, then do a temporary redirect if this is a HEAD or GET, otherwise do a 303.

See RFC 2616.

The interface doesn't say that redirect returns anything. However, Zope's implementation does return the location given. This is largely useless, as it is just the location given which is often relative. So we won't return anything.

API Documentation for Launchpad, generated by pydoctor at 2020-07-03 00:00:04.