Replies: 3 comments 7 replies
-
I'm actually in the process of replacing Right now it's passing 171 tests but failing 139. |
Beta Was this translation helpful? Give feedback.
-
I understand the impetus here and agree that it would sometimes be useful for Gabbi to support evil binary protocols. However, I would caution that this is probably a niche concern, so perhaps we shouldn't burden users with additional dependencies when they happily get by with glorious text-based protocols. A superficial analysis suggests urllib3 is self-contained while httpx comes with another six transitive dependencies. This might not be meaningful, but it's worth considering at least (explicit > implicit etc.). I'm guessing that replacing urllib3 wholesale is gonna be a big undertaking (kudos to Scott for starting on that journey). I'm further guessing that an incremental transition, with httpx only kicking in on demand for H2, is not a realistic option? Otherwise it might be worth considering options for it to be an optional dependency. Apologies for being a bit of a killjoy. My concerns regarding dependencies might be overly informed by other ecosystems. |
Beta Was this translation helpful? Give feedback.
-
Switching to httpx will probably warrant a major version update (to 4). Although the external interface doesn't change the way intercepting works is sufficiently different that it is probably useful to signal it in the most visible way possible. Agree? Disagree? |
Beta Was this translation helpful? Give feedback.
-
#331 raises the question of whether it might be useful to upgrade gabbi to use something other than urllib3 for its http client and somehow add explicit support for http/2.
It appears that httpx is the way to go on this.
One advantage of it is that it would allow us to do wsgi-intercept style behavior without wsgi-intercept (which is badly showing its age).
Thoughts? (ping @scottwallacesh and @FND since they were in previous discussions).
Beta Was this translation helpful? Give feedback.
All reactions