This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
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.
This PR contains the following updates:
==0.17.1
->==0.18.1
Release Notes
encode/httpx
v0.18.1
Compare Source
Changed
brotlicffi
package (Pull #1605)Request(..., stream=...)
does not auto-generate any headers on the request instance. (Pull #1607)Fixed
timeout=...
in top-level httpx.stream() function. (Pull #1613)v0.18.0
Compare Source
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 #1522, #1550)response.ext
property andResponse(ext=...)
argument are now namedextensions
. (Pull #1522)data=<bytes|str|bytes (a)iterator>
in favour ofcontent=<bytes|str|bytes (a)iterator>
has now been escalated to a deprecation warning. (Pull #1573)Response(on_close=...)
from API, since it was a bit of leaking implementation detail. (Pull #1572)httpx.ResponseClosed
is now namedhttpx.StreamClosed
. (#1584)httpx.QueryParams
model now presents an immutable interface. There 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()
. (#1600)Added
Request
andResponse
classes can now be serialized using pickle. (#1579)data={"key": [None|int|float|bool]}
cases. (Pull #1539)httpx.URL(**kwargs)
, for examplehttpx.URL(scheme="https", host="www.example.com", path="/')
, orhttpx.URL("https://www.example.com/", username="tom@gmail.com", password="123 456")
. (Pull #1601)url.copy_with(params=...)
. (Pull #1601)url.params
parameter, returning an immutableQueryParams
instance. (Pull #1601)url.copy_set_param()
,url.copy_add_param()
,url.copy_remove_param()
,url.copy_merge_params()
. (Pull #1601)httpx.URL
class now performs port normalization, so:80
ports are stripped fromhttp
URLs and:443
ports are stripped fromhttps
URLs. (Pull #1603)URL.host
property returns unicode strings for internationalized domain names. TheURL.raw_host
property returns byte strings with IDNA escaping applied. (Pull #1590)Fixed
files=...
where unicode string is used as the file content. (Pull #1537)Client(base_url=...)
. (Pull #1532)request.content
attribute is now always available except for streaming content, which requires an explicit.read()
. (Pull #1583)Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.