starlette
starlette copied to clipboard
The little ASGI framework that shines. 🌟
### Discussed in https://github.com/encode/starlette/discussions/1823 Originally posted by **gyusang** August 26, 2022 When sending a CORS request with credentials, wildcard origin is rejected by the standard. The CORS middleware handles this...
This is one way this issue could be addressed in Starlette. This basically change the type of the `headers` value for `host` to a marker class that inherits from `bytes`...
### Discussed in https://github.com/encode/starlette/discussions/1854 Originally posted by **lieryan** September 9, 2022 This is somewhat related to ticket https://github.com/encode/starlette/issues/843. Currently, `url_for()` can be used to generate an absolute URL for a...
Related to the discussion [here](https://github.com/encode/starlette/discussions/1847).
`ServerErrorMiddleware` ignores `handler` argument when app is running in debug mode. Instead, it [always calls the default one](https://github.com/encode/starlette/blob/master/starlette/middleware/errors.py#L167). ```python from starlette.applications import Starlette from starlette.responses import Response def my_handler(request, exc):...
### Discussed in https://github.com/encode/starlette/discussions/1815 Originally posted by **haggen** August 19, 2022 https://github.com/encode/starlette/blob/f6ea760a80d8b109fb6afd1c03e9a33754e6bb5f/starlette/authentication.py#L29-L38 I'm not a Pythonista so forgive me if it is commonplace in Python, but in general it seems...
### Discussed in https://github.com/encode/starlette/discussions/1821 Originally posted by **falkben** August 26, 2022 `StaticFiles` always checks for the existence of package directories, regardless of whether `check_dir` is set to True or False....
I proposed this functionality in #1827 and added a bit of color in there, this was a quick-and-dirty change so I don't really have a good sense for any far-reaching...
Fixes https://github.com/encode/starlette/issues/1802
We should have the multipart parsing on Starlette itself. > [!IMPORTANT] > - We're using [Polar.sh](https://polar.sh/encode) so you can upvote and help fund this issue. > - We receive the...