class documentation

class LintMiddleware: (source)

View In Hierarchy

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_environ Undocumented
Method check_headers Undocumented
Method check_iterator Undocumented
Method check_start_response Undocumented
Instance Variable app Undocumented
def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Iterable[bytes]: (source)

Undocumented

def __init__(self, app: WSGIApplication): (source)

Undocumented

def check_environ(self, environ: WSGIEnvironment): (source)

Undocumented

def check_headers(self, headers: Headers): (source)

Undocumented

def check_iterator(self, app_iter: t.Iterable[bytes]): (source)

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

Undocumented