Does uvicorn support pathsend? #2286
-
It seems that starlette now supports pathsend: encode/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 2 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
pathsend
was 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
pathsend
is mainly designed for servers which are not written in Python. In order to supportpathsend
Uvicorn 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.).