starlette
starlette copied to clipboard
The little ASGI framework that shines. 🌟
Overwriting an iterated variable inside a loop # Summary The easiest way to describe the problem is to simply quote the code: for route in routes: routes = route.routes or...
# Summary Limiting the size of file being uploaded in case the storage is limited or some business logic can't handle certain size. # Checklist - [x] I understand that...
- Related to https://github.com/fastapi/fastapi/discussions/12416
### Discussed in https://github.com/encode/starlette/discussions/2695 Originally posted by **tomchristie** September 19, 2024 Quoting from #2680... > I'm making some changes to the Starlette documentation to make it more modern and appealing....
According to the ASGI specification [1](https://asgi.readthedocs.io/en/latest/specs/www.html#http-connection-scope), the `raw_path` field is defined as: > raw_path (byte string) – The original HTTP path component, excluding any query string, unmodified from the bytes...
# Summary As we discussed in #2692, this commit updates the testclient so that query string is excluded from `raw_path` for both HTTP and WebSocket. # Checklist - [x] I...
- Closes https://github.com/encode/starlette/issues/2625 Currently, the exceptions on the background tasks are swallowed: ```py from typing import Any from starlette.applications import Starlette from starlette.background import BackgroundTask from starlette.middleware import Middleware from...
# Summary # Checklist - [x] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!) - [x] I've added...
# Summary Add tests for some of the uncovered branches in `starlette.routing`, related to [this issue](https://github.com/encode/starlette/issues/2452) # Checklist - [x] I understand that this PR may be closed in case...
# Summary Whenever a CORS request doesn't contain a cookie in the header, but we try to set one (set-cookie in the response header), the origin of the request is...