-
-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 0.18.0 #1576
Merged
Merged
Version 0.18.0 #1576
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 tasks
Is there a ETA for 0.18.0? Thanks Don't understand me wrong, I'm just asking. |
I'd strongly expect it to be sometime this week. |
Merged
florimondmanca
approved these changes
Apr 26, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exciting!
Co-authored-by: Florimond Manca <[email protected]>
Co-authored-by: Florimond Manca <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog is as follows...
0.18.0 (27th April, 2021)
The 0.18.x release series formalises our low-level Transport API, introducing the base classes
httpx.BaseTransport
andhttpx.AsyncBaseTransport
.See the "Writing custom transports" documentation and the
httpx.BaseTransport.handle_request()
docstring for more complete details on implementing custom transports.Pull request #1522 includes a checklist of differences from the previous
httpcore
transport API, for developers implementing custom transports.The following API changes have been issuing deprecation warnings since 0.17.0 onwards, and are now fully deprecated...
Changed
httpx.BaseTransport
orhttpx.AsyncBaseTransport
,and should implement either the
handle_request
method orhandle_async_request
method. (Pull Transport API #1522, Stream interface #1550)response.ext
property andResponse(ext=...)
argument are now namedextensions
. (Pull Transport API #1522)data=<bytes|str|bytes (a)iterator>
in favour ofcontent=<bytes|str|bytes (a)iterator>
has now been escalated to a deprecation warning. (Pull Escalate the distinction betweendata=...
andcontent=...
to be stricter. #1573)Response(on_close=...)
from API, since it was a bit of leaking implementation detail. (Pull Drop 'Response(on_close=...)' from API #1572)httpx.ResponseClosed
is now namedhttpx.StreamClosed
. (httpx.ResponseClosed
->httpx.StreamClosed
#1584)httpx.QueryParams
model now presents an immutable interface. The is a discussion on the design and motivation here. Useclient.params = client.params.merge(...)
instead ofclient.params.update(...)
. The basic query manipulation methods arequery.set(...)
,query.add(...)
, andquery.remove()
. (Immutable QueryParams #1600)Added
Request
andResponse
classes can now be serialized using pickle. (Make Request and Response picklable #1579)data={"key": [None|int|float|bool]}
cases. (Pull Handledata={"key": [None|int|float|bool]}
cases. #1539)httpx.URL(**kwargs)
, for examplehttpx.URL(scheme="https", host="www.example.com", path="/')
, orhttpx.URL("https://www.example.com/", username="[email protected]", password="123 456")
. (Pull Expand URL interface #1601)url.copy_with(params=...)
. (Pull Expand URL interface #1601)url.params
parameter, returning an immutableQueryParams
instance. (Pull Expand URL interface #1601)url.copy_set_param()
,url.copy_add_param()
,url.copy_remove_param()
,url.copy_merge_params()
. (Pull Expand URL interface #1601)httpx.URL
class now performs port normalization, so:80
ports are stripped fromhttp
URLs and:443
ports are stripped fromhttps
URLs. (Pull Perform port normalization forhttp
,https
,ws
,wss
, andftp
schemes. #1603)URL.host
property returns unicode strings for internationalized domain names. TheURL.raw_host
property returns byte strings with IDNA escaping applied. (Pull Differentiate between 'url.host' and 'url.raw_host' #1590)Fixed
files=...
where unicode string is used as the file content. (Pull Fix Content-Length for unicode file contents with multipart #1537)Client(base_url=...)
. (Pull Fix some cases of merging with base_url #1532)request.content
attribute is now always available except for streaming content, which requires an explicit.read()
. (Pull For non-streaming cases, populaterequest.content
automatically. #1583)