You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have async autodetection, I think we ought to consider dropping the backend argument from AsyncClient.__init__(...), since it's not really required.
If anything it'd be better to find out if/when there are any cases that sniffio isn't able to correctly detect, and fix them, rather than having users be able to flick an override switch.
(It'd also potentially make it easier to have a clear split if we wanted to factor the dispatch out into an entirely independant package at some point, since we'd want the backend implementations to reside in the core networking package, rather than in httpx.)
Note: I use a custom Backend to record the certificates of the HTTPS requests.
This backend behaves as a proxy to a real backend, but record the ssl.SSLObject on the way.
Activity
dalf commentedon Jan 23, 2020
Note: I use a custom Backend to record the certificates of the HTTPS requests.
This backend behaves as a proxy to a real backend, but record the ssl.SSLObject on the way.
Code:
[EDIT] As I understand, the code will be something like this (using the private API):
lovelydinosaur commentedon Jan 24, 2020
@dalf - That's a really useful (surprising) bit of feedback, thanks!
(And yes, you've got the right approach there, but make sure you're pinning your dependencies tightly if you're relying on private API!)
[fix] certificate retrieval
[fix] certificate retrieval
[fix] certificate retrieval