uvicorn
uvicorn copied to clipboard
An ASGI web server, for Python. 🦄
https://github.com/encode/uvicorn/blob/master/uvicorn/protocols/websockets/websockets_impl.py Every time a new websocket request comes in something like this appears in the logs: INFO [uvicorn.error] ('127.0.0.1', 47014) - "WebSocket /api" [accepted] This is slightly confusing since it...
I'm not planing a release any time soon. I've just created this PR to add notes on the changelog.
I'm not sure if this is the right `code`, but `events.CloseConnection` receives `code` as a mandatory field, so without it, you'll have an exception on missing parameters. List of codes:...
I need to add tests for it. Inspired by https://github.com/encode/starlette/issues/1560#issuecomment-1086855500 - [x] ~tests~ this is actually being tested... against none and 1000... maybe we should be more restrictive on the...
Adds `close`, `wait_closed` and `start_serving` methods that match the semantics of `asyncio.Server`. Adds `sockets` argument constructor in order to enable new methods to be used with existing bindings. This makes...
Nice addition! I think we also need to change the introduction paragraphs in [Settings](https://www.uvicorn.org/settings/): ```markdown Use the following options to configure Uvicorn, when running from the command line. If you're...
### Checklist - [x] The bug is reproducible against the latest release and/or `master`. - [x] There are no similar issues or pull requests to fix it yet. ### Describe...
Given that Uvicorn now has `--wsgi` support, we ought to change the documentation around a bit, and promote it as being suitable for either WSGI or ASGI. This'll be a...
Really we ought to phase out the usage of `--debug`/`debug=True`, in favour of... * `--reload`/`reload=True` (A server-level concern. Reload the server on code changes.) * `app = Starlette(debug=True)` (An application...
### Checklist - [x] There are no similar issues or pull requests for this yet. - [x] I discussed this idea on the [community chat](https://gitter.im/encode/community) and feedback is positive. ###...