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
Treq has a global HTTP client, and maybe that's a good thing for quick experiments, but it makes testing difficult and creates type confusion.
Instead:
treq.client.HTTPClient should be promoted somewhere more top-level and central, like perhaps treq.session() or somesuch.
the documentation should universally prefer this.
the global instance of this thing should be an explicit global variable (treq.default ?) and all the aliases (treq.get, treq.post et. al.) should be deprecated.
Treq has a global HTTP client, and maybe that's a good thing for quick experiments, but it makes testing difficult and creates type confusion.
Instead:
treq.client.HTTPClient
should be promoted somewhere more top-level and central, like perhapstreq.session()
or somesuch.treq.default
?) and all the aliases (treq.get
,treq.post
et. al.) should be deprecated.Previously: #242 #243
The text was updated successfully, but these errors were encountered: