Skip to content

v0.86.0 - smoother request & response ergonomics

Latest

Choose a tag to compare

@sansyrox sansyrox released this 16 Jun 18:30
· 1 commit to main since this release

A round of quality-of-life fixes and FastAPI-parity papercuts, consolidated in #1399.

Fixes & features

  • request.json() now parses both str and bytes bodies — previously a bytes body raised a raw error (#1335)
  • Path-param warning no longer fires when handlers read params via request / request.path_params (#1336)
  • Response(body=...) alias for the confusingly-named description= — both work, and headers is now optional (#1337)
  • New request type aliases RequestMethod, RequestBody, RequestURL, importable from robyn and robyn.types (#1077)

Docs

  • Documented the new type aliases and the Response body= alias (English + 中文)

Big thanks to @ahmadmahmoody, whose fixes were consolidated (with authorship preserved) into this release. 🙏

Full Changelog: v0.85.0...v0.86.0