mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
The previous implementation of the webmock plugin bypassed the connection layer, which made it ignore key plugins like the retries plugin. The whole plugin was redone so that it'd hook at the connection level when piping requests. A small difficulty was on how to handle the connection initialization state when needing to unmock, as name resolving triggers before requests are piped. A hack with a #once callback was implemented. Fixes #170