Part of lp.services.webapp.servers View In Hierarchy
Known subclasses: lp.services.webapp.servers.LaunchpadTestResponse
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 . |
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.