The return value is a tuple, not an iterable
This commit is contained in:
parent
a06e8726a4
commit
fa3ac11be0
|
@ -736,11 +736,10 @@ method.
|
|||
Values Returned by A Web3 Application
|
||||
-------------------------------------
|
||||
|
||||
Web3 applications return an iterable in the form (``status``,
|
||||
``headers``, ``body``). The return value can be any iterable type
|
||||
that returns exactly three values. If the server supports
|
||||
asynchronous applications (``web3.async``), the response may be a
|
||||
callable object (which accepts no arguments).
|
||||
Web3 applications return a tuple in the form (``status``, ``headers``,
|
||||
``body``). If the server supports asynchronous applications
|
||||
(``web3.async``), the response may be a callable object (which accepts no
|
||||
arguments).
|
||||
|
||||
The ``status`` value is assumed by a gateway or server to be an HTTP
|
||||
"status" bytes instance like ``b'200 OK'`` or ``b'404 Not Found'``.
|
||||
|
|
Loading…
Reference in New Issue