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 ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Classe « Response »

Méthode flask.wrappers.Response.from_app

Signature de la méthode from_app

def from_app(app: 'WSGIApplication', environ: 'WSGIEnvironment', buffered: 'bool' = False) -> 'Response' 

Description

help(Response.from_app)

Create a new response object from an application output.  This
works best if you pass it an application that returns a generator all
the time.  Sometimes applications may use the `write()` callable
returned by the `start_response` function.  This tries to resolve such
edge cases automatically.  But if you don't get the expected output
you should set `buffered` to `True` which enforces buffering.

:param app: the WSGI application to execute.
:param environ: the WSGI environment to execute against.
:param buffered: set to `True` to enforce buffering.
:return: a response object.


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé