Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonw/asgi-scope
A tiny application for understanding ASGI scope
https://github.com/simonw/asgi-scope
asgi uvicorn
Last synced: 2 months ago
JSON representation
A tiny application for understanding ASGI scope
- Host: GitHub
- URL: https://github.com/simonw/asgi-scope
- Owner: simonw
- Created: 2018-06-01T14:37:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-09T00:38:30.000Z (over 4 years ago)
- Last Synced: 2024-10-06T20:54:36.779Z (3 months ago)
- Topics: asgi, uvicorn
- Language: Python
- Homepage: https://asgi-scope.now.sh/
- Size: 3.91 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# asgi-scope
A tiny application for understanding ASGI scope
Example: https://asgi-scope.now.sh/path?qs=hello
{'client': ('172.29.0.10', 34784),
'headers': [[b'host', b'asgi-scope.now.sh'],
[b'x-forwarded-host', b'asgi-scope.now.sh'],
[b'x-real-ip', b'199.188.193.220'],
[b'x-forwarded-for', b'199.188.193.220'],
[b'x-forwarded-proto', b'https'],
[b'x-now-id', b'fb6gw-1527863960919-mjYC9OJ9WTsfnw4EiRTDmMst'],
[b'x-now-log-id', b'mjYC9OJ9WTsfnw4EiRTDmMst'],
[b'x-zeit-co-forwarded-for', b'199.188.193.220'],
[b'connection', b'close'],
[b'user-agent',
b'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko'
b'/20100101 Firefox/60.0'],
[b'accept',
b'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q='
b'0.8'],
[b'accept-language', b'en-US,en;q=0.5'],
[b'accept-encoding', b'gzip, deflate, br'],
[b'upgrade-insecure-requests', b'1']],
'http_version': '0.0',
'method': 'GET',
'path': '/path',
'query_string': b'qs=hello',
'scheme': 'http',
'server': ('172.28.0.10', 8000),
'type': 'http'}See also https://github.com/django/asgiref/blob/master/specs/www.rst