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 ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Classe « Response »

Méthode flask.wrappers.Response.get_data

Signature de la méthode get_data

def get_data(self, as_text: 'bool' = False) -> 'bytes | str' 

Description

help(Response.get_data)

The string representation of the response body.  Whenever you call
this property the response iterable is encoded and flattened.  This
can lead to unwanted behavior if you stream big data.

This behavior can be disabled by setting
:attr:`implicit_sequence_conversion` to `False`.

If `as_text` is set to `True` the return value will be a decoded
string.

.. versionadded:: 0.9


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