File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 22
22
Optional ,
23
23
Tuple ,
24
24
Type ,
25
+ TypedDict ,
25
26
Union ,
26
27
)
27
28
@@ -188,6 +189,18 @@ class ConnectionKey(NamedTuple):
188
189
proxy : Optional [URL ]
189
190
proxy_auth : Optional [BasicAuth ]
190
191
proxy_headers_hash : Optional [int ] # hash(CIMultiDict)
192
+
193
+
194
+ class _ResponseParams (TypedDict ):
195
+ timer : Optional [BaseTimerContext ]
196
+ skip_payload : bool
197
+ read_until_eof : bool
198
+ auto_decompress : bool
199
+ read_timeout : Optional [float ]
200
+ read_bufsize : int
201
+ timeout_ceil_threshold : float
202
+ max_line_size : int
203
+ max_field_size : int
191
204
192
205
193
206
class ClientRequest :
@@ -230,6 +243,8 @@ def __init__(
230
243
method : str ,
231
244
url : URL ,
232
245
* ,
246
+ response_params : _ResponseParams ,
247
+ timeout : ClientTimeout ,
233
248
params : Query = None ,
234
249
headers : Optional [LooseHeaders ] = None ,
235
250
skip_auto_headers : Optional [Iterable [str ]] = None ,
@@ -281,6 +296,8 @@ def __init__(
281
296
self .response_class : Type [ClientResponse ] = real_response_class
282
297
self ._timer = timer if timer is not None else TimerNoop ()
283
298
self ._ssl = ssl
299
+ self ._response_params = response_params
300
+ self ._timeout = timeout
284
301
self .server_hostname = server_hostname
285
302
286
303
if loop .get_debug ():
You can’t perform that action at this time.
0 commit comments