|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| None | __init__ (self, Any app) |
| None | __call__ (self, Dict[str, Any] scope, Any receive, Any send) |
Public Attributes | |
| app = app | |
Static Public Attributes | |
| str | PATH = "/api/layerx/drawings" |
ASGI middleware: refuse a drawing upload larger than MAX_UPLOAD_BYTES before its body is read. FastAPI parses (and Starlette spools to disk) a multipart file before the route runs, so the route's own cap came after the whole body had arrived. The multipart envelope is allowed 64 kB.
| None backend.routers.layerx.UploadSizeGuard.__init__ | ( | self, | |
| Any | app ) |
| None backend.routers.layerx.UploadSizeGuard.__call__ | ( | self, | |
| Dict[str, Any] | scope, | ||
| Any | receive, | ||
| Any | send ) |
| backend.routers.layerx.UploadSizeGuard.app = app |
Definition at line 94 of file layerx.py.
Referenced by __call__().
|
static |
Definition at line 91 of file layerx.py.
Referenced by __call__().