Skip to content

v0.20.0 - [Breaking Change] - Allow non string response types

Compare
Choose a tag to compare
@sansyrox sansyrox released this 20 Dec 21:39
· 428 commits to main since this release

What's Changed

Full Changelog: v0.19.2...v0.20.0

Sample Usage

@app.get("/request_headers")
async def request_headers():
    return {
        "status_code": 200,
        "body": "This is a regular response",
        "type": "text",
        "headers": {"Header": "header_value"},
    }