Commit 8b79591
Pass kwarg options to HTTPRequest instead of AsyncHTTPClient
We shouldn't be passing these options to the AsyncHTTPClient.
The docs state:
> Unless force_instance=True is used, no arguments should be passed
> to the AsyncHTTPClient constructor
https://www.tornadoweb.org/en/stable/httpclient.html?highlight=AsyncHTTPClient#tornado.httpclient.AsyncHTTPClient
The options instead should be set on the HTTPRequest:
https://www.tornadoweb.org/en/branch5.1/httpclient.html#tornado.httpclient.HTTPRequest
This is consistent with how options are passed to the requests
backend.1 parent 84c46d0 commit 8b79591
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments