Skip to content

Upgrading httpx 0.14 to 0.15

Breaking0.14.3 → 0.15.5Breaking8New10Changed4Fixed7

BreakingUpgrade verdict

8 breaking changes.

  • 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.
Top 3 of 8 that need code or config changes

Drops chardet.

Installs 6 packages in all (was 7).

Breaking8
Drops url.authority property in favour of url.netloc.
url.authorityurl.netloc
Drops url.full_path property in favour of url.raw_path.
url.full_pathurl.raw_path
Removes the URLLib3Transport class, now published as an example custom transport.
URLLib3Transport
Drops the request.timer attribute, which was used internally to set response.elapsed.
request.timerresponse.elapsed
Removes the response.decoder attribute, which was used internally.
response.decoder
Cleans up URL escaping behaviour so url.path is now URL escaped.
url.path
Cleans up bytes vs str in URL components: url.userinfo and url.query are not URL escaped and return bytes.
url.userinfourl.query
Makes Request.prepare() a private method.
Request.prepare()