class documentation
class LintMiddleware: (source)
Warns about common errors in the WSGI and HTTP behavior of the server and wrapped application. Some of the issues it checks are: - invalid status codes - non-bytes 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)
Method | __call__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | check |
Undocumented |
Method | check |
Undocumented |
Method | check |
Undocumented |
Method | check |
Undocumented |
Instance Variable | app |
Undocumented |
def check_start_response(self, status:
str
, headers: t.List[ t.Tuple[ str, str]]
, exc_info: t.Optional[ t.Tuple[ t.Type[ BaseException], BaseException, TracebackType]]
) -> t.Tuple[ int, Headers]
:
(source)
¶
Undocumented