OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | mimetype (self) |
def | mimetype (self, value) |
def | mimetype_params (self) |
def | retry_after (self) |
def | retry_after (self, value) |
A mixin for :class:`BaseResponse` subclasses. Response objects that mix this class in will automatically get descriptors for a couple of HTTP headers with automatic type conversion.
def mimetype | ( | self | ) |
The mimetype (content type without charset etc.)
def mimetype | ( | self, | |
value | |||
) |
def mimetype_params | ( | self | ) |
The mimetype parameters as dict. For example if the content type is ``text/html; charset=utf-8`` the params would be ``{'charset': 'utf-8'}``. .. versionadded:: 0.5
def retry_after | ( | self | ) |
The Retry-After response-header field can be used with a 503 (Service Unavailable) response to indicate how long the service is expected to be unavailable to the requesting client. Time in seconds until expiration or date.
def retry_after | ( | self, | |
value | |||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |