Skip to content

0.51.0

Compare
Choose a tag to compare
@tiangolo tiangolo released this 01 Mar 21:08
· 3439 commits to master since this release
  • Re-export utils from Starlette:
    • This allows using things like from fastapi.responses import JSONResponse instead of from starlette.responses import JSONResponse.
    • It's mainly syntax sugar, a convenience for developer experience.
    • Now Request, Response, WebSocket, status can be imported directly from fastapi as in from fastapi import Response. This is because those are frequently used, to use the request directly, to set headers and cookies, to get status codes, etc.
    • Documentation changes in many places, but new docs and noticeable improvements:
    • PR #1064.