asgiref icon indicating copy to clipboard operation
asgiref copied to clipboard

Example apps in docs

Open adamchainz opened this issue 3 years ago • 4 comments

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 for both full apps and middleware.

adamchainz avatar Sep 30 '22 10:09 adamchainz

Do we want one for each: HTTP, WebSockets, and extensions?

If I receive the Andrew's ack here, I can work on a PR. :+1:

Kludex avatar Dec 27 '22 09:12 Kludex

If you can somehow make them clean and simple, sure!

andrewgodwin avatar Dec 27 '22 18:12 andrewgodwin

Is this clean and simple: https://github.com/django/asgiref/pull/366 ?

Kludex avatar Dec 28 '22 10:12 Kludex

It is!

andrewgodwin avatar Dec 28 '22 18:12 andrewgodwin