@@ -152,9 +152,10 @@ def __init__(self,
152
152
:type session: :class:`requests.sessions.Session`
153
153
:param dict headers: Additional headers to add to requests.
154
154
:param Optional[float] timeout: Maximum duration in seconds that
155
- client will wait when receiving data from server. After the timeout
156
- the client will give up on connection. If `None`, client will
157
- wait forever. Defaults to 30 seconds.
155
+ client will wait for any single packet from the
156
+ server. After the timeout the client will give up on
157
+ connection. If `None`, client will wait forever. Defaults
158
+ to 30 seconds.
158
159
"""
159
160
assert len (oauth2_access_token ) > 0 , \
160
161
'OAuth2 access token cannot be empty.'
@@ -215,10 +216,11 @@ def request(self,
215
216
validator specified by route.arg_type.
216
217
:param request_binary: String or file pointer representing the binary
217
218
payload. Use None if there is no binary payload.
218
- :param Optional[float] timeout: Maximum duration in seconds that
219
- client will wait when receiving data from server. After the timeout
220
- the client will give up on connection. If `None`, client will
221
- wait forever. Defaults to `None`.
219
+ :param Optional[float] timeout: Maximum duration in seconds
220
+ that client will wait for any single packet from the
221
+ server. After the timeout the client will give up on
222
+ connection. If `None`, client will wait forever. Defaults
223
+ to `None`.
222
224
:return: The route's result.
223
225
"""
224
226
host = route .attrs ['host' ] or 'api'
@@ -295,6 +297,11 @@ def request_json_object(self,
295
297
client will wait when receiving data from server. After the timeout
296
298
the client will give up on connection. If `None`, client will
297
299
wait forever. Defaults to `None`.
300
+ :param Optional[float] timeout: Maximum duration in seconds
301
+ that client will wait for any single packet from the
302
+ server. After the timeout the client will give up on
303
+ connection. If `None`, client will wait forever. Defaults
304
+ to `None`.
298
305
:return: The route's result as a JSON-serializable Python object.
299
306
"""
300
307
serialized_arg = json .dumps (request_arg )
0 commit comments