starlette
starlette copied to clipboard
The little ASGI framework that shines. 🌟
Patch replaces ``` def url_path_for(self, name: str, **path_params: str) -> URLPath: ``` with ``` def url_path_for(self, *args: str, **kwargs: str) -> URLPath: assert len(args) == 1, "Exactly one positional argument...
Hello there! In the documentation, there is [this example about large applications](https://www.starlette.io/routing/#submounting-routes). If we make it a little more complete, we can get something like this: ```python import uvicorn from...
### Checklist - [x] The bug is reproducible against the latest release and/or `master`. - [X] There are no similar issues or pull requests to fix it yet. ### Describe...
I'm trying to embed an mp4 file on a page using the following HTML: The video file is being served by a Starlette `FileResponse`. I'm getting this error in Safari:...
Simple implementation for #560 to start a discussion. `url_for` only supports path parameters and in some scenarios like pagination, it would be useful to add query parameters to it. and...
### Describe the bug The cookie created may include "=" and be wrongly formatted, ignored by the browser. ### To reproduce starlette/starlette/middleware/sessions.py:55 data = b64encode(json.dumps(scope["session"]).encode("utf-8")) E.g. when scope["session"] = {"a":"bc"}...
Hello! I've been trying to write tests for a starlette websocket API. Only one problem - the server isn't written in a way to exit nicely when a websocket is...
### Checklist - [x] The bug is reproducible against the latest release and/or `master`. - [x] There are no similar issues or pull requests to fix it yet. ### Describe...
Missing: - [x] Remove `asgiref`. - [x] Use the previous `import typing` - [x] Fix skipped tests - [x] Remove docs references to `requests`.