-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
apiThis has to do with the Python API (view)This has to do with the Python API (view)c apiThis has to do with the C API (_view)This has to do with the C API (_view)complexThis should only be looked at by someone who knows what they're doingThis should only be looked at by someone who knows what they're doingimprovementImprovement to an existing featureImprovement to an existing feature
Milestone
Description
Description:
As of now, view.py only supports sending and receiving str objects, not bytes. This shouldn’t be too hard to implement for sending, but will probably require some changes to the route input implementation to support receiving bytes objects.
This could look like:
from view import new_app
app = new_app()
@app.get("/")
async def index():
return b"Hello, world!"
app.run()This will make file responses and uploads possible.
Metadata
Metadata
Assignees
Labels
apiThis has to do with the Python API (view)This has to do with the Python API (view)c apiThis has to do with the C API (_view)This has to do with the C API (_view)complexThis should only be looked at by someone who knows what they're doingThis should only be looked at by someone who knows what they're doingimprovementImprovement to an existing featureImprovement to an existing feature