What's Changed
- fix: factorizing code by @AntoineRR in #322
- fix: allow response headers and fix headers not working in const requests by @sansyrox in #331
Full Changelog: v0.19.1...v0.19.2
Usage
You can return headers like:
@app.get("/redirect")
async def redirect(request):
return {
"status_code": "200",
"body": "test message",
"type": "text",
"headers": jsonify({"Header": "value"}),
}