github sparckles/Robyn v0.24.0
v0.24.0 - Allow byte responses in Robyn

latest releases: v0.65.1, v0.65.0, v0.64.2...
2 years ago

Sample Usage

@app.get("/binary_output_response_sync")
def binary_output_response_sync(request):
    return Response(
        status_code=200,
        headers={"Content-Type": "application/octet-stream"},
        body="OK",
    )


@app.get("/binary_output_async")
async def binary_output_async(request):
    return b"OK"


@app.get("/binary_output_response_async")
async def binary_output_response_async(request):
    return Response(
        status_code=200,
        headers={"Content-Type": "application/octet-stream"},
        body="OK",
    )

What's Changed

New Contributors

Full Changelog: v0.23.1...v0.24.0

Don't miss a new Robyn release

NewReleases is sending notifications on new releases.