github sparckles/Robyn v0.14.0
v0.14.0 - Added custom response objects

latest releases: v0.72.2, v0.72.1, v0.72.0...
3 years ago

Robyn supports custom response objects now! 🥳

What's Changed

Full Changelog: v0.13.1...v0.14.0

Example

@app.get("/")
async def hello(request):
    global callCount
    callCount += 1
    message = "Called " + str(callCount) + " times"
    print(message, request)
    return {"status_code": "200", "body": "hello", "type": "text"}


@app.get('/404')
def return_404():
    return {"status_code": "404", "body": "hello", "type": "text"}

Don't miss a new Robyn release

NewReleases is sending notifications on new releases.