OpenQuizz
Une application de gestion des contenus pédagogiques
LintMiddleware Class Reference
Inheritance diagram for LintMiddleware:
Collaboration diagram for LintMiddleware:

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
 

Detailed Description

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)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  app 
)

Member Function Documentation

◆ __call__()

def __call__ (   self,
args,
**  kwargs 
)

◆ check_environ()

def check_environ (   self,
  environ 
)

◆ check_headers()

def check_headers (   self,
  headers 
)

◆ check_iterator()

def check_iterator (   self,
  app_iter 
)

◆ check_start_response()

def check_start_response (   self,
  status,
  headers,
  exc_info 
)

Field Documentation

◆ app

app

The documentation for this class was generated from the following file: