|
|
@ -667,7 +667,7 @@ About Responses |
|
|
|
The return value from a view function is automatically converted into a |
|
|
|
The return value from a view function is automatically converted into a |
|
|
|
response object for you. If the return value is a string it's converted |
|
|
|
response object for you. If the return value is a string it's converted |
|
|
|
into a response object with the string as response body, an ``200 OK`` |
|
|
|
into a response object with the string as response body, an ``200 OK`` |
|
|
|
error code and a ``text/html`` mimetype. The logic that Flask applies to |
|
|
|
status code and a ``text/html`` mimetype. The logic that Flask applies to |
|
|
|
converting return values into response objects is as follows: |
|
|
|
converting return values into response objects is as follows: |
|
|
|
|
|
|
|
|
|
|
|
1. If a response object of the correct type is returned it's directly |
|
|
|
1. If a response object of the correct type is returned it's directly |
|
|
|