Skip to content

Commit c3ecf75

Browse files
Update client_reqrep.py
1 parent 41fc72b commit c3ecf75

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

aiohttp/client_reqrep.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
Optional,
2323
Tuple,
2424
Type,
25+
TypedDict,
2526
Union,
2627
)
2728

@@ -188,6 +189,18 @@ class ConnectionKey(NamedTuple):
188189
proxy: Optional[URL]
189190
proxy_auth: Optional[BasicAuth]
190191
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
191204

192205

193206
class ClientRequest:
@@ -230,6 +243,8 @@ def __init__(
230243
method: str,
231244
url: URL,
232245
*,
246+
response_params: _ResponseParams,
247+
timeout: ClientTimeout,
233248
params: Query = None,
234249
headers: Optional[LooseHeaders] = None,
235250
skip_auto_headers: Optional[Iterable[str]] = None,
@@ -281,6 +296,8 @@ def __init__(
281296
self.response_class: Type[ClientResponse] = real_response_class
282297
self._timer = timer if timer is not None else TimerNoop()
283298
self._ssl = ssl
299+
self._response_params = response_params
300+
self._timeout = timeout
284301
self.server_hostname = server_hostname
285302

286303
if loop.get_debug():

0 commit comments

Comments
 (0)