Fixing missed arguments for pools when init transports

NE
3y ago
+16-8

Summary

https://github.com/encode/httpx/blob/5b5f6d8e172910371b5901f6e21717097274c513/httpx/_transports/default.py#L258-L330
eg.

  • in AsyncHTTPTransport, AsyncConnectionPool has the argument of retries passed in, but AsyncHTTPProxy and AsyncSOCKSProxy have not;
  • in HTTPTransport, it has the same issue.

discussion: https://github.com/encode/httpx/discussions/2988

This also requires a fix in https://github.com/encode/httpcore

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.