-
-
Notifications
You must be signed in to change notification settings - Fork 998
Closed
Milestone
Description
Let's get squared away what we need for Version 0.10.0.
The key here is we need to make sure we've sorted out any API that'd block us from reintroducing the sync API, so...
- Let's drop
.read()fromRequest- It's not documented anywhere, not actually required by users, and the content is available onrequest.streamif absolutely needed. Drop Request.read() #679 - We need
Response.read()andResponse.close()to beResponse.aread()andResponse.aclose(). The only point where this is relevant is users performing conditional reads inside awith httpx.stream(method, url) as responseblock. Rename 'read/close' to 'aread/aclose' on Response #674 - We ought to have
Client.close()becomeClient.aclose()for consistency. Rename 'close' to 'aclose' on Client #675 - Good point to get Drop per-request
cert,verify, andtrust_env#617 in. - We'll need to change
response.next(). We could either underspecify the return type, and allow it to be either sync or async depending on the context, or we useresponse.anext()andresponse.next(). Rename 'next' to 'anext' on Response #676 -
Good point to addressDropOriginfrom public API. #656. - Potentially we could introduce an
httpx.AsyncClientsynonm forhttpx.Client, and advise our users to switch towards that usage, so that there's no breaking changes for them once we fully reintroduce a sync API all the way through. Rename Client to AsyncClient (with compat synonym) #680
Metadata
Metadata
Assignees
Labels
No labels