Upgrading httpx 0.14 to 0.15
Breaking0.14.3 → 0.15.5Breaking8New10Changed4Fixed7
BreakingUpgrade verdict
8 breaking changes.
In plain terms
- Use url.netloc instead of url.authority.
- Use url.raw_path instead of url.full_path.
- The URLLib3Transport class is gone; an example implementation is available instead.
- The request.timer attribute has been removed.
Must act Top 3 of 8 that need code or config changes
Drops chardet.
Installs 6 packages in all (was 7).
What you must change
Breaking8
Drops url.authority property in favour of url.netloc.
url.authorityurl.netlocDrops url.full_path property in favour of url.raw_path.
url.full_pathurl.raw_pathRemoves the URLLib3Transport class, now published as an example custom transport.
URLLib3TransportDrops the request.timer attribute, which was used internally to set response.elapsed.
request.timerresponse.elapsedRemoves the
response.decoder attribute, which was used internally.response.decoderCleans up URL escaping behaviour so url.path is now URL escaped.
url.pathCleans up bytes vs str in URL components: url.userinfo and url.query are not URL escaped and return bytes.
url.userinfourl.queryMakes
Request.prepare() a private method.Request.prepare()