Does uvicorn support pathsend? #2286
-
|
It seems that starlette now supports pathsend: Kludex/starlette#2435. However, using this feature requires an ASGI server that also supports pathsend. Does uvicorn? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
@multimeric Uvicorn doesn't support it, but it probably won't benefit at all from it, as |
Beta Was this translation helpful? Give feedback.
@multimeric
pathsendwas proposed and added to ASGI spec by me to allow ASGI frameworks/apps to benefit from servers implementing such standard. The proposal was mainly driven by the existence of a similar behaviour in RSGI protocol.Uvicorn doesn't support it, but it probably won't benefit at all from it, as
pathsendis mainly designed for servers which are not written in Python. In order to supportpathsendUvicorn would implement the same Python code your application/framework already implement, behaving in the exact same way, and being limited by the same stack (GIL, Python objects, etc.).