]> git.ipfire.org Git - thirdparty/starlette.git/log
thirdparty/starlette.git
6 years agoDisable deprecation warnings (triggered by third party packages)
Tom Christie [Fri, 23 Nov 2018 13:02:20 +0000 (13:02 +0000)] 
Disable deprecation warnings (triggered by third party packages)

6 years agoVersion 0.8.7 0.8.7
Tom Christie [Fri, 23 Nov 2018 11:14:39 +0000 (11:14 +0000)] 
Version 0.8.7

6 years agoAsyncio cleanups (#236)
Tom Christie [Fri, 23 Nov 2018 11:11:16 +0000 (11:11 +0000)] 
Asyncio cleanups (#236)

6 years agoadd tests for chunked requests (#235)
Shen Li [Fri, 23 Nov 2018 08:56:37 +0000 (03:56 -0500)] 
add tests for chunked requests (#235)

6 years agoVersion 0.8.6 0.8.6
Tom Christie [Thu, 22 Nov 2018 16:13:01 +0000 (16:13 +0000)] 
Version 0.8.6

6 years agoUse path=/ for session cookies (#232)
Tom Christie [Thu, 22 Nov 2018 16:11:06 +0000 (16:11 +0000)] 
Use path=/ for session cookies (#232)

6 years agoremove unused imports (#228)
Alexander Botello [Wed, 21 Nov 2018 19:12:44 +0000 (13:12 -0600)] 
remove unused imports (#228)

6 years agodelete print statement (#227)
Alexander Botello [Wed, 21 Nov 2018 16:25:45 +0000 (10:25 -0600)] 
delete print statement (#227)

6 years agoUpdate broken link (#224)
Taoufik [Sun, 18 Nov 2018 18:26:47 +0000 (18:26 +0000)] 
Update broken link (#224)

* Update broken link

* Update broken link

6 years agofix typo (#219)
Roman [Fri, 16 Nov 2018 17:56:15 +0000 (20:56 +0300)] 
fix typo (#219)

6 years agoVersion 0.8.5 0.8.5
Tom Christie [Fri, 16 Nov 2018 14:04:08 +0000 (14:04 +0000)] 
Version 0.8.5

6 years agoTweak test case
Tom Christie [Fri, 16 Nov 2018 13:52:05 +0000 (13:52 +0000)] 
Tweak test case

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Fri, 16 Nov 2018 13:51:22 +0000 (13:51 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoFix incorrect decoding of application/x-www-form-urlencoded request body (#217)
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.

6 years agoURL convertors (#221)
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

6 years agoSuooprt HTTP 304 for static files. (#212)
赖信涛 [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

6 years agoDocumentation typo (#218)
David Larlet [Wed, 14 Nov 2018 10:58:05 +0000 (05:58 -0500)] 
Documentation typo (#218)

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Mon, 12 Nov 2018 10:58:18 +0000 (10:58 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoInclude Jinja2 in the [full] optional package (#213)
Jesse Braham [Sun, 11 Nov 2018 01:54:21 +0000 (01:54 +0000)] 
Include Jinja2 in the [full] optional package (#213)

6 years agoMove arg (#210)
Jordan Eremieff [Sat, 10 Nov 2018 08:02:51 +0000 (19:02 +1100)] 
Move  arg (#210)

6 years agoVersion 0.8.4 0.8.4
Tom Christie [Fri, 9 Nov 2018 18:03:35 +0000 (18:03 +0000)] 
Version 0.8.4

6 years agoDefault to empty body on responses (#208)
Tom Christie [Fri, 9 Nov 2018 17:59:58 +0000 (17:59 +0000)] 
Default to empty body on responses (#208)

6 years agoVersion 0.8.3 0.8.3
Tom Christie [Fri, 9 Nov 2018 13:41:49 +0000 (13:41 +0000)] 
Version 0.8.3

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Fri, 9 Nov 2018 13:40:24 +0000 (13:40 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoURL reconstruction fix (#204)
Tom Christie [Fri, 9 Nov 2018 13:39:51 +0000 (13:39 +0000)] 
URL reconstruction fix (#204)

* Version 0.8.2

* Fix URL reconstruction

6 years agoAdd name to app routes (#205)
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(...)

6 years agoVersion 0.8.2 0.8.2
Tom Christie [Thu, 8 Nov 2018 17:00:24 +0000 (17:00 +0000)] 
Version 0.8.2

6 years agoDo not read file for HEAD method on StaticFiles (#176)
赖信涛 [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

6 years agoAdd Jinja2 link
Tom Christie [Thu, 8 Nov 2018 16:36:39 +0000 (16:36 +0000)] 
Add Jinja2 link

6 years agoJinja2 (#198) 0.8.1
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

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Thu, 8 Nov 2018 13:12:46 +0000 (13:12 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoLink to example repo
Tom Christie [Thu, 8 Nov 2018 13:12:37 +0000 (13:12 +0000)] 
Link to example repo

6 years agoRemove redundant test cases
Tom Christie [Thu, 8 Nov 2018 12:33:58 +0000 (12:33 +0000)] 
Remove redundant test cases

6 years agoVersion 0.8.0 0.8.0
Tom Christie [Thu, 8 Nov 2018 12:07:17 +0000 (12:07 +0000)] 
Version 0.8.0

6 years agoAdd SessionMiddleware's max_age to docs
Tom Christie [Thu, 8 Nov 2018 12:00:51 +0000 (12:00 +0000)] 
Add SessionMiddleware's max_age to docs

6 years agoImplement session expiry with configurable maximum age (#186)
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)

6 years agoRejig ExceptionMiddleware and ServerErrorMiddleware (#193)
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

6 years agofixed issue 188,trailing spaces not allowed in header (#194)
Witekkq [Thu, 8 Nov 2018 09:34:06 +0000 (10:34 +0100)] 
fixed issue 188,trailing spaces not allowed in header (#194)

6 years agoStaticFiles will check if directory exists upon instantiation (#195)
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

6 years agoVersion 0.7.4 0.7.4
Tom Christie [Wed, 7 Nov 2018 13:42:26 +0000 (13:42 +0000)] 
Version 0.7.4

6 years agoAdd `async run_in_threadpool(func, *args, **kwargs)` (#192)
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

6 years agoAdd template snippet
Tom Christie [Tue, 6 Nov 2018 17:03:34 +0000 (17:03 +0000)] 
Add template snippet

6 years agoVersion 0.7.3 0.7.3
Tom Christie [Tue, 6 Nov 2018 16:59:54 +0000 (16:59 +0000)] 
Version 0.7.3

6 years agoAdd support for name to mount points. (#184)
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

6 years agoAdd docs for third party middleware classes
Tom Christie [Tue, 6 Nov 2018 14:06:25 +0000 (14:06 +0000)] 
Add docs for third party middleware classes

6 years agoVersion 0.7.2 0.7.2
Tom Christie [Tue, 6 Nov 2018 12:21:54 +0000 (12:21 +0000)] 
Version 0.7.2

6 years agoAdd `@app.middleware(...)` decorator (#183)
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

6 years agoAdd 'endpoint' info to scope when routing
Tom Christie [Mon, 5 Nov 2018 16:58:38 +0000 (16:58 +0000)] 
Add 'endpoint' info to scope when routing

6 years agoMutate scope, rather than copying it.
Tom Christie [Mon, 5 Nov 2018 15:21:24 +0000 (15:21 +0000)] 
Mutate scope, rather than copying it.

6 years agoDrop redundant 'router' in scope
Tom Christie [Mon, 5 Nov 2018 15:21:06 +0000 (15:21 +0000)] 
Drop redundant 'router' in scope

6 years agoVersion 0.7.1 0.7.1
Tom Christie [Mon, 5 Nov 2018 12:08:34 +0000 (12:08 +0000)] 
Version 0.7.1

6 years agoUpdate README.md (#174)
Urchin [Mon, 5 Nov 2018 11:49:00 +0000 (13:49 +0200)] 
Update README.md (#174)

6 years agofeat(DebugMiddleware): Output improved. (#179)
Marcos Schroh [Mon, 5 Nov 2018 11:46:56 +0000 (12:46 +0100)] 
feat(DebugMiddleware): Output improved. (#179)

6 years agoAdd www_redirect behavior to TrustedHostsMiddleware (#181)
Tom Christie [Mon, 5 Nov 2018 11:38:20 +0000 (11:38 +0000)] 
Add www_redirect behavior to TrustedHostsMiddleware (#181)

6 years ago adds background task param to StreamingResponse and FileResponse (#167)
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

6 years agoFinesse mount routing (#173)
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.

6 years agoUpdate 'Performance' section
Tom Christie [Thu, 1 Nov 2018 14:41:55 +0000 (14:41 +0000)] 
Update 'Performance' section

6 years agoVersion 0.7.0 0.7.0
Tom Christie [Thu, 1 Nov 2018 12:56:21 +0000 (12:56 +0000)] 
Version 0.7.0

6 years agoDrop add_graphql_route, in favor of more consistent API style (#170)
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)

6 years agoAdd OpenAPIResponse, API Schema docs, etc... (#171)
Tom Christie [Thu, 1 Nov 2018 12:52:03 +0000 (12:52 +0000)] 
Add OpenAPIResponse, API Schema docs, etc... (#171)

6 years agoSession property asserts that SessionMiddleware is installed (#161)
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

6 years agoDrop lifespan.cleanup in favor of lifespan.shutdown (#165)
Tom Christie [Thu, 1 Nov 2018 10:42:14 +0000 (10:42 +0000)] 
Drop lifespan.cleanup in favor of lifespan.shutdown (#165)

6 years agoReturn strings from `url_path_for` (#169)
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`

6 years agoFix linking
Tom Christie [Wed, 31 Oct 2018 09:42:07 +0000 (09:42 +0000)] 
Fix linking

6 years agoLink out to other projects
Tom Christie [Wed, 31 Oct 2018 09:39:10 +0000 (09:39 +0000)] 
Link out to other projects

6 years agoVersion 0.6.3 0.6.3
Tom Christie [Tue, 30 Oct 2018 16:11:19 +0000 (16:11 +0000)] 
Version 0.6.3

6 years agoRouting tweaks (#164)
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

6 years agoAllow handler-like objects within routing (#163)
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

6 years agoFixes to static files documentation. (#162)
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.

6 years agoUpdate README/homepage
Tom Christie [Mon, 29 Oct 2018 16:49:13 +0000 (16:49 +0000)] 
Update README/homepage

6 years agoSupport clearing sessions (#158) 0.6.2
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

6 years agoSession middleware (#157)
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

6 years agoUse isort for consistent import ordering (#156)
Tom Christie [Mon, 29 Oct 2018 14:46:42 +0000 (14:46 +0000)] 
Use isort for consistent import ordering (#156)

6 years agoDocs on BaseHTTPMiddleware
Tom Christie [Mon, 29 Oct 2018 13:24:37 +0000 (13:24 +0000)] 
Docs on BaseHTTPMiddleware

6 years agoBaseHTTPMiddleware (#155) 0.6.1
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

6 years agoSupport app.url_path_for and request.url_for (#153)
Tom Christie [Mon, 29 Oct 2018 11:14:42 +0000 (11:14 +0000)] 
Support app.url_path_for and request.url_for (#153)

6 years agoAdd release notes
Tom Christie [Mon, 29 Oct 2018 09:33:33 +0000 (09:33 +0000)] 
Add release notes

6 years agoRouting interface (#144)
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

6 years agoDomain wildcards for trusted host (#151)
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

6 years agoDrop support for `StaticFile` (#145)
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

6 years agoCall urllib.parse.unquote on decoded field value (#150)
Alexander Botello [Sun, 28 Oct 2018 18:02:25 +0000 (13:02 -0500)] 
Call urllib.parse.unquote on decoded field value (#150)

6 years agoReturn an iterator over keys for Headers and QueryParams (#142)
Ryan Kaskel [Fri, 26 Oct 2018 12:29:25 +0000 (13:29 +0100)] 
Return an iterator over keys for Headers and QueryParams (#142)

6 years agoSupport a routing interface for `Router` (#143)
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

6 years agoVersion 0.5.5 0.5.5
Tom Christie [Mon, 22 Oct 2018 14:10:11 +0000 (15:10 +0100)] 
Version 0.5.5

6 years agoEnsure WSGI middleware only handles http messages
Tom Christie [Mon, 22 Oct 2018 14:09:50 +0000 (15:09 +0100)] 
Ensure WSGI middleware only handles http messages

6 years agoSupport either `cleanup` or `shutdown` in ASGI lifespan messages (#134)
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

6 years agoAdd documentation to reflect `add_event_handler` (#129)
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

6 years agoFix events docs typo. (#131)
Oliver Tso [Sat, 20 Oct 2018 12:53:11 +0000 (09:53 -0300)] 
Fix events docs typo. (#131)

6 years agoInclude 'add_graphql_route'
Tom Christie [Thu, 18 Oct 2018 16:06:17 +0000 (17:06 +0100)] 
Include 'add_graphql_route'

6 years agoVersion 0.5.4 0.5.4
Tom Christie [Thu, 18 Oct 2018 15:59:13 +0000 (16:59 +0100)] 
Version 0.5.4

6 years agoAdd 'app.add_graphql_route()'
Tom Christie [Thu, 18 Oct 2018 15:58:49 +0000 (16:58 +0100)] 
Add 'app.add_graphql_route()'

6 years agoVersion 0.5.3 0.5.3
Tom Christie [Thu, 18 Oct 2018 14:24:54 +0000 (15:24 +0100)] 
Version 0.5.3

6 years agoAdd graphiql support
Tom Christie [Thu, 18 Oct 2018 14:24:26 +0000 (15:24 +0100)] 
Add graphiql support

6 years agoVersion 0.5.2 0.5.2
Tom Christie [Thu, 18 Oct 2018 13:45:58 +0000 (14:45 +0100)] 
Version 0.5.2

6 years agoGraphQL support (#126)
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

6 years agoRevisit WebSocket status codes (#119)
Tom Christie [Thu, 18 Oct 2018 07:47:04 +0000 (08:47 +0100)] 
Revisit WebSocket status codes (#119)

6 years agoSupport a function-based interface for adding events on LifespanHandler (#124)
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

6 years agoFix example import statement (#123)
Alexander Botello [Thu, 18 Oct 2018 07:38:07 +0000 (02:38 -0500)] 
Fix example import statement (#123)

6 years agoMerge branch 'master' of https://github.com/encode/starlette 0.5.1
Tom Christie [Wed, 17 Oct 2018 15:58:21 +0000 (16:58 +0100)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoVersion 0.5.1
Tom Christie [Wed, 17 Oct 2018 15:58:14 +0000 (16:58 +0100)] 
Version 0.5.1