|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, app) |
| def | check_environ (self, environ) |
| def | check_start_response (self, status, headers, exc_info) |
| def | check_headers (self, headers) |
| def | check_iterator (self, app_iter) |
| def | __call__ (self, *args, **kwargs) |
Data Fields | |
| app | |
Warns about common errors in the WSGI and HTTP behavior of the
server and wrapped application. Some of the issues it check are:
- invalid status codes
- non-bytestrings sent to the WSGI server
- strings returned from the WSGI application
- non-empty conditional responses
- unquoted etags
- relative URLs in the Location header
- unsafe calls to wsgi.input
- unclosed iterators
Error information is emitted using the :mod:`warnings` module.
:param app: The WSGI application to wrap.
.. code-block:: python
from werkzeug.middleware.lint import LintMiddleware
app = LintMiddleware(app)
| def __init__ | ( | self, | |
| app | |||
| ) |
| def __call__ | ( | self, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
| def check_environ | ( | self, | |
| environ | |||
| ) |
| def check_headers | ( | self, | |
| headers | |||
| ) |
| def check_iterator | ( | self, | |
| app_iter | |||
| ) |
| def check_start_response | ( | self, | |
| status, | |||
| headers, | |||
| exc_info | |||
| ) |
| app |