flask.Response.get_data¶
-
Response.
get_data
(as_text=False)¶ The string representation of the request body. Whenever you call this property the request iterable is encoded and flattened. This can lead to unwanted behavior if you stream big data.
This behavior can be disabled by setting
implicit_sequence_conversion
to False.If as_text is set to True the return value will be a decoded unicode string.
New in version 0.9.