asgiref icon indicating copy to clipboard operation
asgiref copied to clipboard

ASGI specification and utilities

Results 64 asgiref issues
Sort by recently updated
recently updated
newest added

The spec currently defines a lot of details without any example apps (except in the lifespan section). It would be good to include basic examples, perhaps function and class versions...

See https://github.com/pgjones/hypercorn/issues/75 where Starlette changes the `scope["path"]`, should ASGI frameworks do this or consider the existing values immutable? (I don't think the specification says - I may work around by...

There is already a [PR](https://github.com/django/asgiref/pull/339) open regarding this. I wanted to open this to add options to the discussion. I did the [uvicorn implementation](https://github.com/encode/uvicorn/pull/1599). As stated in the other proposal...

This commit prepares the release notes for a 3.8.0 release, to help clear the decks for that. TODO: - [ ] Remove `(WIP)` from commit message. - [ ] Set...

I've been wondering... Uvicorn is the only ASGI server that sends `http.response.start`, and then processes the body. The problem with this approach, is that the successful response may be a...

I'm not sure of the exact role that asgiref plays in the Django stack, and specifically how that might vary between a "debug" setup where Django itself - IIUC -...

When using a function decorated with `@async_to_sync` inside of a function decorated with `@sync_to_async` a new thread is spawned instead of reusing the same thread and event loop. This issue...

`main.py`: ```python import sys def trace_call(frame, event, arg): pass if __name__ == "__main__": sys.setprofile(trace_call) import asgiref.sync ``` Reproduce: python version: 3.8.5 ```shell python -m venv venv source ./venv/bin/activate pip install...

### Changes Made - Improved clarity and readability in the `is_double_callable` function. - Enhanced consistency and readability in the `double_to_single_callable` and `guarantee_single_callable` functions. ### Why Refactored the code to enhance...

Related links: - https://github.com/django/asgiref/issues/229 - https://github.com/encode/starlette/discussions/2361 - https://github.com/search?q=scope%5B%22path%22%5D+language%3APython&type=code&l=Python In the first link, @andrewgodwin stated the differences between root_path and path in WSGI. After Starlette actively followed up, this led to...