Description
IIUC, the current method for mixing FastAPI with Rio has some limitations:
- The
as_fastapi feature can only be called once in a Rio app
- FastAPI is blocked by
run_as_web_server
- FastAPI is blocked by
rio run
Suggested Solution
@Aran-Fey has suggested:
An alternative we can consider is making rio.App a subclass of FastAPI. That would give you convenient access to all fastapi features, while also retaining access to rio features like run_as_web_server().
Alternatives
Better documentation of the limitations for using FastAPI features in a Rio app.
Related Issues/Pull Requests
Description
IIUC, the current method for mixing FastAPI with Rio has some limitations:
as_fastapifeature can only be called once in a Rio apprun_as_web_serverrio runSuggested Solution
@Aran-Fey has suggested:
Alternatives
Better documentation of the limitations for using FastAPI features in a Rio app.
Related Issues/Pull Requests