A round of quality-of-life fixes and FastAPI-parity papercuts, consolidated in #1399.
Fixes & features
request.json()now parses bothstrandbytesbodies — 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-nameddescription=— both work, andheadersis now optional (#1337)- New request type aliases
RequestMethod,RequestBody,RequestURL, importable fromrobynandrobyn.types(#1077)
Docs
- Documented the new type aliases and the
Responsebody=alias (English + 中文)
Big thanks to @ahmadmahmoody, whose fixes were consolidated (with authorship preserved) into this release. 🙏
Full Changelog: v0.85.0...v0.86.0