]>
git.ipfire.org Git - thirdparty/starlette.git/log
Tom Christie [Fri, 23 Nov 2018 13:02:20 +0000 (13:02 +0000)]
Disable deprecation warnings (triggered by third party packages)
Tom Christie [Fri, 23 Nov 2018 11:14:39 +0000 (11:14 +0000)]
Version 0.8.7
Tom Christie [Fri, 23 Nov 2018 11:11:16 +0000 (11:11 +0000)]
Asyncio cleanups (#236)
Shen Li [Fri, 23 Nov 2018 08:56:37 +0000 (03:56 -0500)]
add tests for chunked requests (#235)
Tom Christie [Thu, 22 Nov 2018 16:13:01 +0000 (16:13 +0000)]
Version 0.8.6
Tom Christie [Thu, 22 Nov 2018 16:11:06 +0000 (16:11 +0000)]
Use path=/ for session cookies (#232)
Alexander Botello [Wed, 21 Nov 2018 19:12:44 +0000 (13:12 -0600)]
remove unused imports (#228)
Alexander Botello [Wed, 21 Nov 2018 16:25:45 +0000 (10:25 -0600)]
delete print statement (#227)
Taoufik [Sun, 18 Nov 2018 18:26:47 +0000 (18:26 +0000)]
Update broken link (#224)
* Update broken link
* Update broken link
Roman [Fri, 16 Nov 2018 17:56:15 +0000 (20:56 +0300)]
fix typo (#219)
Tom Christie [Fri, 16 Nov 2018 14:04:08 +0000 (14:04 +0000)]
Version 0.8.5
Tom Christie [Fri, 16 Nov 2018 13:52:05 +0000 (13:52 +0000)]
Tweak test case
Tom Christie [Fri, 16 Nov 2018 13:51:22 +0000 (13:51 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
supriyo-biswas [Fri, 16 Nov 2018 13:51:14 +0000 (19:21 +0530)]
Fix incorrect decoding of application/x-www-form-urlencoded request body (#217)
* Fix incorrect decoding of application/x-www-form-urlencoded request body.
* Add test for URLencoded forms.
Tom Christie [Fri, 16 Nov 2018 13:50:55 +0000 (13:50 +0000)]
URL convertors (#221)
* Version 0.8.4
* Add support for path convertors
* Add to_string on convertors
赖信涛 [Wed, 14 Nov 2018 11:38:01 +0000 (19:38 +0800)]
Suooprt HTTP 304 for static files. (#212)
* feat: support HTTP 304
* test for staticfiles 304
* fix email.utils functions
* fix mypy test, just ignore parsedate result type
* not reparsing the FileResponse
* fix black check
* delete unused import and print
* fix type annotation
David Larlet [Wed, 14 Nov 2018 10:58:05 +0000 (05:58 -0500)]
Documentation typo (#218)
Tom Christie [Mon, 12 Nov 2018 10:58:18 +0000 (10:58 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
Jesse Braham [Sun, 11 Nov 2018 01:54:21 +0000 (01:54 +0000)]
Include Jinja2 in the [full] optional package (#213)
Jordan Eremieff [Sat, 10 Nov 2018 08:02:51 +0000 (19:02 +1100)]
Move arg (#210)
Tom Christie [Fri, 9 Nov 2018 18:03:35 +0000 (18:03 +0000)]
Version 0.8.4
Tom Christie [Fri, 9 Nov 2018 17:59:58 +0000 (17:59 +0000)]
Default to empty body on responses (#208)
Tom Christie [Fri, 9 Nov 2018 13:41:49 +0000 (13:41 +0000)]
Version 0.8.3
Tom Christie [Fri, 9 Nov 2018 13:40:24 +0000 (13:40 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
Tom Christie [Fri, 9 Nov 2018 13:39:51 +0000 (13:39 +0000)]
URL reconstruction fix (#204)
* Version 0.8.2
* Fix URL reconstruction
Tom Christie [Fri, 9 Nov 2018 13:38:29 +0000 (13:38 +0000)]
Add name to app routes (#205)
* Version 0.8.2
* Add name argument to app.route(...)
Tom Christie [Thu, 8 Nov 2018 17:00:24 +0000 (17:00 +0000)]
Version 0.8.2
赖信涛 [Thu, 8 Nov 2018 16:59:00 +0000 (00:59 +0800)]
Do not read file for HEAD method on StaticFiles (#176)
* Do not read file for HEAD method on StaticFiles
* bugfix left in FileResponse
* add test for StaticFiles HEAD method
* restore aiofiles'open after testcase
* format code using black
* Send "http.response.body" instead of disconnect.
body default to b"";
more_body default to False;
fix testcase.
* rebase master, revert background task back
* update param name, send_header_only -> method
* No need to instantiate a new Request, just use scope
* style code using black
Tom Christie [Thu, 8 Nov 2018 16:36:39 +0000 (16:36 +0000)]
Add Jinja2 link
Tom Christie [Thu, 8 Nov 2018 16:14:14 +0000 (16:14 +0000)]
Jinja2 (#198)
* Use jinja2 for a default template configuration
* Add release notes
Tom Christie [Thu, 8 Nov 2018 13:12:46 +0000 (13:12 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
Tom Christie [Thu, 8 Nov 2018 13:12:37 +0000 (13:12 +0000)]
Link to example repo
Tom Christie [Thu, 8 Nov 2018 12:33:58 +0000 (12:33 +0000)]
Remove redundant test cases
Tom Christie [Thu, 8 Nov 2018 12:07:17 +0000 (12:07 +0000)]
Version 0.8.0
Tom Christie [Thu, 8 Nov 2018 12:00:51 +0000 (12:00 +0000)]
Add SessionMiddleware's max_age to docs
Jesse Braham [Thu, 8 Nov 2018 11:59:27 +0000 (11:59 +0000)]
Implement session expiry with configurable maximum age (#186)
* Set a maximum age for sessions
* Test session expiry for full coverage
* Fix mypy error
* Handle old-style sessions (ie. no timestamp)
Tom Christie [Thu, 8 Nov 2018 11:59:15 +0000 (11:59 +0000)]
Rejig ExceptionMiddleware and ServerErrorMiddleware (#193)
* Rejig ExceptionMiddleware and ServerErrorMiddleware
* Tweak DebugMiddleware implementation
* Support custom 500 handlers
* Exception handling updates
Witekkq [Thu, 8 Nov 2018 09:34:06 +0000 (10:34 +0100)]
fixed issue 188,trailing spaces not allowed in header (#194)
Alexander Botello [Thu, 8 Nov 2018 09:33:20 +0000 (03:33 -0600)]
StaticFiles will check if directory exists upon instantiation (#195)
* Add check_dir parameter
* Add test coverage for check_dir
* Update documentation
* linting
* Remove extra space
Tom Christie [Wed, 7 Nov 2018 13:42:26 +0000 (13:42 +0000)]
Version 0.7.4
Tom Christie [Wed, 7 Nov 2018 13:38:29 +0000 (13:38 +0000)]
Add `async run_in_threadpool(func, *args, **kwargs)` (#192)
* Add run_in_threadpool
* Fix contextvars support with threadpools
Tom Christie [Tue, 6 Nov 2018 17:03:34 +0000 (17:03 +0000)]
Add template snippet
Tom Christie [Tue, 6 Nov 2018 16:59:54 +0000 (16:59 +0000)]
Version 0.7.3
Tom Christie [Tue, 6 Nov 2018 16:57:57 +0000 (16:57 +0000)]
Add support for name to mount points. (#184)
* Support name on app.mount(...)
* Add templating docs
* Remove erronous commit
* Linting
Tom Christie [Tue, 6 Nov 2018 14:06:25 +0000 (14:06 +0000)]
Add docs for third party middleware classes
Tom Christie [Tue, 6 Nov 2018 12:21:54 +0000 (12:21 +0000)]
Version 0.7.2
Tom Christie [Tue, 6 Nov 2018 12:19:52 +0000 (12:19 +0000)]
Add `@app.middleware(...)` decorator (#183)
* Add @app.middleware() decorator
* Linting
* Drop erronous check-in
* Type hinting for BaseHTTPMiddleware
Tom Christie [Mon, 5 Nov 2018 16:58:38 +0000 (16:58 +0000)]
Add 'endpoint' info to scope when routing
Tom Christie [Mon, 5 Nov 2018 15:21:24 +0000 (15:21 +0000)]
Mutate scope, rather than copying it.
Tom Christie [Mon, 5 Nov 2018 15:21:06 +0000 (15:21 +0000)]
Drop redundant 'router' in scope
Tom Christie [Mon, 5 Nov 2018 12:08:34 +0000 (12:08 +0000)]
Version 0.7.1
Urchin [Mon, 5 Nov 2018 11:49:00 +0000 (13:49 +0200)]
Update README.md (#174)
Marcos Schroh [Mon, 5 Nov 2018 11:46:56 +0000 (12:46 +0100)]
feat(DebugMiddleware): Output improved. (#179)
Tom Christie [Mon, 5 Nov 2018 11:38:20 +0000 (11:38 +0000)]
Add www_redirect behavior to TrustedHostsMiddleware (#181)
zya-performance [Mon, 5 Nov 2018 11:38:05 +0000 (03:38 -0800)]
adds background task param to StreamingResponse and FileResponse (#167)
* adds background task param to StreamingResponse
* allows FileResponse to run a background task after last bye is sent
* test StreamingResponse and FileResponse with background task
* linted
* added a blank line to match CI expectations
Tom Christie [Mon, 5 Nov 2018 11:11:35 +0000 (11:11 +0000)]
Finesse mount routing (#173)
* Finesse mount routing
* Add redirect_slashes behavior
* Add redirect_slashes behavior
* Support url_path_for, with mounted apps.
Tom Christie [Thu, 1 Nov 2018 14:41:55 +0000 (14:41 +0000)]
Update 'Performance' section
Tom Christie [Thu, 1 Nov 2018 12:56:21 +0000 (12:56 +0000)]
Version 0.7.0
Tom Christie [Thu, 1 Nov 2018 12:52:16 +0000 (12:52 +0000)]
Drop add_graphql_route, in favor of more consistent API style (#170)
Tom Christie [Thu, 1 Nov 2018 12:52:03 +0000 (12:52 +0000)]
Add OpenAPIResponse, API Schema docs, etc... (#171)
Alexander Botello [Thu, 1 Nov 2018 11:39:44 +0000 (06:39 -0500)]
Session property asserts that SessionMiddleware is installed (#161)
* return empty dict if session doesn't exist
* assert session exists
Tom Christie [Thu, 1 Nov 2018 10:42:14 +0000 (10:42 +0000)]
Drop lifespan.cleanup in favor of lifespan.shutdown (#165)
Tom Christie [Thu, 1 Nov 2018 10:40:08 +0000 (10:40 +0000)]
Return strings from `url_path_for` (#169)
Schema generation & return strings from `url_path_for`
Tom Christie [Wed, 31 Oct 2018 09:42:07 +0000 (09:42 +0000)]
Fix linking
Tom Christie [Wed, 31 Oct 2018 09:39:10 +0000 (09:39 +0000)]
Link out to other projects
Tom Christie [Tue, 30 Oct 2018 16:11:19 +0000 (16:11 +0000)]
Version 0.6.3
Tom Christie [Tue, 30 Oct 2018 16:08:05 +0000 (16:08 +0000)]
Routing tweaks (#164)
* Ensure url_path_for works with Mount('/{some_path_params}')
* Fix Router(default=) argument
* Support partial matches on routing, to support handlers with same path, but different methods.
* Run sync views in threadpool
* Use default executor for WSGI middleware
Kamil Endruszkiewicz [Tue, 30 Oct 2018 15:24:07 +0000 (16:24 +0100)]
Allow handler-like objects within routing (#163)
* Allow handler-like objects within routing
* Methods in websockets as proper endpoint
Johan Zietsman [Tue, 30 Oct 2018 13:03:40 +0000 (15:03 +0200)]
Fixes to static files documentation. (#162)
* I fixed a grammar error. The example code did not work, since there are no Path and PathPrefix classes in starlette.routing. I replaced PathPrefix with Mount to get it to work.
* I fixed a spelling error.
Tom Christie [Mon, 29 Oct 2018 16:49:13 +0000 (16:49 +0000)]
Update README/homepage
Tom Christie [Mon, 29 Oct 2018 16:43:40 +0000 (16:43 +0000)]
Support clearing sessions (#158)
* Use isort for consistent import ordering
* Add SessionMmiddleware support
* Add SessionMiddleware support
* Support clearing sessions
* Version 0.6.2
Tom Christie [Mon, 29 Oct 2018 16:16:51 +0000 (16:16 +0000)]
Session middleware (#157)
* Use isort for consistent import ordering
* Add SessionMmiddleware support
* Add SessionMiddleware support
Tom Christie [Mon, 29 Oct 2018 14:46:42 +0000 (14:46 +0000)]
Use isort for consistent import ordering (#156)
Tom Christie [Mon, 29 Oct 2018 13:24:37 +0000 (13:24 +0000)]
Docs on BaseHTTPMiddleware
Tom Christie [Mon, 29 Oct 2018 13:02:43 +0000 (13:02 +0000)]
BaseHTTPMiddleware (#155)
* Support app.url_path_for and request.url_for
* Minor tweak to release notes
* Added BaseHTTPMiddleware
Tom Christie [Mon, 29 Oct 2018 11:14:42 +0000 (11:14 +0000)]
Support app.url_path_for and request.url_for (#153)
Tom Christie [Mon, 29 Oct 2018 09:33:33 +0000 (09:33 +0000)]
Add release notes
Tom Christie [Mon, 29 Oct 2018 09:22:45 +0000 (09:22 +0000)]
Routing interface (#144)
* Path -> Route, PathPrefix -> Mount
* Route, WebSocketRoute, Mount
* Use Route(endpoint=...), not Route(app=...)
* Bare minimum docs update
* Add url_for
* request.path_params and session.path_params
* Version 0.6.0
Tom Christie [Mon, 29 Oct 2018 09:22:13 +0000 (09:22 +0000)]
Domain wildcards for trusted host (#151)
* Support domain wildcards with TrustedHostMiddleware
* Support domain wildcards with TrustedHostMiddleware
* Include domain wildcards in TrustedHostMiddleware docs
Alexander Botello [Sun, 28 Oct 2018 18:04:17 +0000 (13:04 -0500)]
Drop support for `StaticFile` (#145)
* Add runtime checks inside FileResponse w/ tests
* Drop support of StaticFile
* update documentation
Alexander Botello [Sun, 28 Oct 2018 18:02:25 +0000 (13:02 -0500)]
Call urllib.parse.unquote on decoded field value (#150)
Ryan Kaskel [Fri, 26 Oct 2018 12:29:25 +0000 (13:29 +0100)]
Return an iterator over keys for Headers and QueryParams (#142)
Alexander Botello [Fri, 26 Oct 2018 09:30:54 +0000 (04:30 -0500)]
Support a routing interface for `Router` (#143)
* Add a routing interface to Router
* Starlette class now wraps routing functionality from Router
* No need to pass in empty list
* Add missing test coverage
* black that one file i always forget
Tom Christie [Mon, 22 Oct 2018 14:10:11 +0000 (15:10 +0100)]
Version 0.5.5
Tom Christie [Mon, 22 Oct 2018 14:09:50 +0000 (15:09 +0100)]
Ensure WSGI middleware only handles http messages
Alexander Botello [Mon, 22 Oct 2018 14:08:04 +0000 (09:08 -0500)]
Support either `cleanup` or `shutdown` in ASGI lifespan messages (#134)
* support either cleanup or shutdown in ASGI message
* change event_type in tests
* update docs
* fix typo
* keep as event_type for now
* exclude line 65
* blackify
* replace cleanup with shutdown in docs
Alexander Botello [Sun, 21 Oct 2018 07:37:29 +0000 (02:37 -0500)]
Add documentation to reflect `add_event_handler` (#129)
* Update applications docs
* Update events docs
* slight reword
* make requested changes
* split into two examples
Oliver Tso [Sat, 20 Oct 2018 12:53:11 +0000 (09:53 -0300)]
Fix events docs typo. (#131)
Tom Christie [Thu, 18 Oct 2018 16:06:17 +0000 (17:06 +0100)]
Include 'add_graphql_route'
Tom Christie [Thu, 18 Oct 2018 15:59:13 +0000 (16:59 +0100)]
Version 0.5.4
Tom Christie [Thu, 18 Oct 2018 15:58:49 +0000 (16:58 +0100)]
Add 'app.add_graphql_route()'
Tom Christie [Thu, 18 Oct 2018 14:24:54 +0000 (15:24 +0100)]
Version 0.5.3
Tom Christie [Thu, 18 Oct 2018 14:24:26 +0000 (15:24 +0100)]
Add graphiql support
Tom Christie [Thu, 18 Oct 2018 13:45:58 +0000 (14:45 +0100)]
Version 0.5.2
Tom Christie [Thu, 18 Oct 2018 13:45:18 +0000 (14:45 +0100)]
GraphQL support (#126)
* GraphQL support
* GraphQL support
* Run GraphQL queries inside a threadpool
* Support AsyncioExecutor
* GraphQL error formatting
* Docs for GraphQL support
Tom Christie [Thu, 18 Oct 2018 07:47:04 +0000 (08:47 +0100)]
Revisit WebSocket status codes (#119)
Alexander Botello [Thu, 18 Oct 2018 07:43:21 +0000 (02:43 -0500)]
Support a function-based interface for adding events on LifespanHandler (#124)
* Add function interface to lifespanhandler
* function interface accessible added to applications
* Add test for add_event_handler
Alexander Botello [Thu, 18 Oct 2018 07:38:07 +0000 (02:38 -0500)]
Fix example import statement (#123)
Tom Christie [Wed, 17 Oct 2018 15:58:21 +0000 (16:58 +0100)]
Merge branch 'master' of https://github.com/encode/starlette
Tom Christie [Wed, 17 Oct 2018 15:58:14 +0000 (16:58 +0100)]
Version 0.5.1