'text/html'.
| header, content) |
'Content-Length' as the header, you need to represent the
content as a string, even though it is an integer number. The same
header can be added multiple times, in which case multiple
headers will be sent.
Calling this function after pse.flush has been called will raise a HeadersSentError.
| [realm = 'PSE Application']) |
Calling this function after pse.flush has been called will raise a HeadersSentError.
New in version 3.0.
url[, method = pse.plugins.response.MOVED_TEMPORARILY]) |
The value of method must be one of MOVED_TEMPORARILY,
MOVED_PERMANENTLY, SEE_ALSO, TEMPORARY_REDIRECT
or REFRESH. The first
four correspond to HTTP results codes; normally this should be
MOVED_TEMPORARILY, but your needs may require a different response.
The REFRESH method differs in that it inserts a Refresh header in
the response to refresh the page location, with a delay of 0 seconds.
Calling this function after pse.flush has been called will raise a HeadersSentError.
Changed in version 3.0.