Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé
Classe « Request »

Méthode flask.wrappers.Request.application

Signature de la méthode application

def application(f: 't.Callable[[Request], WSGIApplication]') -> 'WSGIApplication' 

Description

help(Request.application)

Decorate a function as responder that accepts the request as
the last argument.  This works like the :func:`responder`
decorator but the function is passed the request object as the
last argument and the request object will be closed
automatically::

    @Request.application
    def my_wsgi_app(request):
        return Response('Hello World!')

As of Werkzeug 0.14 HTTP exceptions are automatically caught and
converted to responses instead of failing.

:param f: the WSGI callable to decorate
:return: a new WSGI callable


Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé