Skip to content
Myr

Merge pull request #3113 from greyli/improve-doc-quickstart

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by GitHub · parents 8c97969, d838f1c · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • doc: Improve description for valid view func return value

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:docs/quickstart.rst+4 added-4 removed
681 unmodified lines
6821. If a response object of the correct type is returned it's directly683 returned from the view.6842. If it's a string, a response object is created with that data and the685 default parameters.6863. If a tuple is returned the items in the tuple can provide extra687 information. Such tuples have to be in the form ``(response, status,688 headers)`` or ``(response, headers)`` where at least one item has689 to be in the tuple. The ``status`` value will override the status code6863. If a tuple is returned the items in the tuple can provide extra information.687 Such tuples have to be in the form ``(response, status, headers)``,688 ``(response, headers)`` or ``(response, status)`` where at least one item689 has to be in the tuple. The ``status`` value will override the status code690 and ``headers`` can be a list or dictionary of additional header values.6914. If none of that works, Flask will assume the return value is a692 valid WSGI application and convert that into a response object.693
158 unmodified lines