Tom Christie
7ab015d8e8
Update README/homepage
2018-10-29 16:49:13 +00:00
Tom Christie
244916e1de
Support clearing sessions ( #158 )
...
* Use isort for consistent import ordering
* Add SessionMmiddleware support
* Add SessionMiddleware support
* Support clearing sessions
* Version 0.6.2
2018-10-29 16:43:40 +00:00
Tom Christie
87da226f1c
Session middleware ( #157 )
...
* Use isort for consistent import ordering
* Add SessionMmiddleware support
* Add SessionMiddleware support
2018-10-29 16:16:51 +00:00
Tom Christie
bcf876c686
Use isort for consistent import ordering ( #156 )
2018-10-29 14:46:42 +00:00
Tom Christie
be6469b381
Docs on BaseHTTPMiddleware
2018-10-29 13:24:37 +00:00
Tom Christie
ee4732f385
BaseHTTPMiddleware ( #155 )
...
* Support app.url_path_for and request.url_for
* Minor tweak to release notes
* Added BaseHTTPMiddleware
2018-10-29 13:02:43 +00:00
Tom Christie
c047fe4e75
Support app.url_path_for and request.url_for ( #153 )
2018-10-29 11:14:42 +00:00
Tom Christie
b52fd11f32
Add release notes
2018-10-29 09:33:33 +00:00
Tom Christie
8da0f00fe7
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
2018-10-29 09:22:45 +00:00
Tom Christie
f53b172f8a
Domain wildcards for trusted host ( #151 )
...
* Support domain wildcards with TrustedHostMiddleware
* Support domain wildcards with TrustedHostMiddleware
* Include domain wildcards in TrustedHostMiddleware docs
2018-10-29 09:22:13 +00:00
Alexander Botello
cdb08bc644
Drop support for `StaticFile` ( #145 )
...
* Add runtime checks inside FileResponse w/ tests
* Drop support of StaticFile
* update documentation
2018-10-28 18:04:17 +00:00
Alexander Botello
a395726dbe
Call urllib.parse.unquote on decoded field value ( #150 )
2018-10-28 18:02:25 +00:00
Ryan Kaskel
a32ea0a8e8
Return an iterator over keys for Headers and QueryParams ( #142 )
2018-10-26 13:29:25 +01:00
Alexander Botello
3ca34ce0a2
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
2018-10-26 10:30:54 +01:00
Tom Christie
7b8d4920c2
Version 0.5.5
2018-10-22 15:10:11 +01:00
Tom Christie
74efbec9b3
Ensure WSGI middleware only handles http messages
2018-10-22 15:09:50 +01:00
Alexander Botello
bc26ab3319
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
2018-10-22 15:08:04 +01:00
Alexander Botello
49f76ab5e9
Add documentation to reflect `add_event_handler` ( #129 )
...
* Update applications docs
* Update events docs
* slight reword
* make requested changes
* split into two examples
2018-10-21 08:37:29 +01:00
Oliver Tso
4a1738cb23
Fix events docs typo. ( #131 )
2018-10-20 13:53:11 +01:00
Tom Christie
fa2a5a8070
Include 'add_graphql_route'
2018-10-18 17:06:17 +01:00
Tom Christie
374035a442
Version 0.5.4
2018-10-18 16:59:13 +01:00
Tom Christie
137c2ab70e
Add 'app.add_graphql_route()'
2018-10-18 16:58:49 +01:00
Tom Christie
b07551ba4c
Version 0.5.3
2018-10-18 15:24:54 +01:00
Tom Christie
c0f9f60ae9
Add graphiql support
2018-10-18 15:24:26 +01:00
Tom Christie
9ff01e887f
Version 0.5.2
2018-10-18 14:45:58 +01:00
Tom Christie
315a21be85
GraphQL support ( #126 )
...
* GraphQL support
* GraphQL support
* Run GraphQL queries inside a threadpool
* Support AsyncioExecutor
* GraphQL error formatting
* Docs for GraphQL support
2018-10-18 14:45:18 +01:00
Tom Christie
67b8d71601
Revisit WebSocket status codes ( #119 )
2018-10-18 08:47:04 +01:00
Alexander Botello
b0763469ff
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
2018-10-18 08:43:21 +01:00
Alexander Botello
88fe1799c7
Fix example import statement ( #123 )
2018-10-18 08:38:07 +01:00
Tom Christie
e1ff9b9f71
Merge branch 'master' of https://github.com/encode/starlette
2018-10-17 16:58:21 +01:00
Tom Christie
6c3c1f362e
Version 0.5.1
2018-10-17 16:58:14 +01:00
Tom Christie
860fdf6c8b
Add WSGI middleware ( #120 )
...
* Add WSGI middleware
* Fix for WSGI middleware tests
2018-10-17 16:54:02 +01:00
Tom Christie
2b2c07078c
Fix Headers repr
2018-10-17 14:01:26 +01:00
Tom Christie
4afb143f02
Add QueryParams(items=...)
2018-10-17 13:33:36 +01:00
Tom Christie
e13f4f9977
Version 0.5.0
2018-10-17 13:07:03 +01:00
Tom Christie
6dd6dd6f0a
Add scope=... arguments to Headers, QueryParams, URL ( #118 )
2018-10-17 12:31:53 +01:00
Jeff Buttars
eed466abbc
Add http and websocket status codes with descriptive variables ( #43 )
...
* Add status.py for http and websocket status code with descriptive
variable names.
* Fix import of status
* Add status usage to tests
* change wsconnect to websocket_connect
* Update with master
2018-10-17 12:31:20 +01:00
Tom Christie
07581a7dd6
Tweak to cookie docs
2018-10-17 11:17:07 +01:00
Alexander Botello
4dedf7ce96
Add documentation for cookies ( #116 )
...
* Add cookies to request docs
* Add cookies to response docs
* Reformat the postion of methods
2018-10-17 11:15:32 +01:00
gfeun
e7a5b22cf2
Fix typo in README example ( #117 )
2018-10-17 11:08:06 +01:00
Tom Christie
65704a8083
Note zero hard dependencies
2018-10-17 09:00:45 +01:00
Tom Christie
66cce0f1c3
Merge branch 'master' of https://github.com/encode/starlette
2018-10-16 16:10:34 +01:00
Tom Christie
b829248e7d
Add feature list to README/docs
2018-10-16 16:10:24 +01:00
Tom Christie
c50460fbb9
Add final missing annotations, and enable '--disallow-untyped-defs' ( #115 )
...
* fix(dataStructures): missing annotations added
* fix(requests.py): annotations added
* fix(Annotations): wrong annotations fixed on datastructures and requests modules.
* fix(Missing annotation): missing annotations added on testclient module.
* fix(testclient): annotations fixed
* minor tweaks
* fix(testclient): Session request method fixed. WIP _ASGIAdapter send method
* fix(testclient): small tweaks
* Switch on --disallow-untyped-defs when testing with mypy
2018-10-16 15:56:28 +01:00
Tom Christie
43fb676439
Add missing type annotations ( #113 )
...
* Add missing type annotations
* Type annotation tweak
2018-10-16 13:20:10 +01:00
Tom Christie
e2cdd2e1ee
Type annotation tweaks
2018-10-16 10:28:11 +01:00
Marcos Schroh
d05aa0fd16
Missing annotations added on responses module. ( #67 )
...
* fix(dataStructures): missing annotations added
* fix(requests.py): annotations added
* fix(Annotations): wrong annotations fixed on datastructures and requests modules.
* fix(Missing annotation): missing annotations added on responses module.
* fix(responses): annotations fixed
* fix(datastructures): missing annotations added
2018-10-16 10:25:58 +01:00
Tom Christie
0a86c16a24
Adding type annotations ( #112 )
...
* Adding type annotations
* Add missing import
2018-10-16 10:22:55 +01:00
Marcos Schroh
300977aa23
Missing annotations added on applications module ( #73 )
...
* fix(dataStructures): missing annotations added
* fix(requests.py): annotations added
* fix(Annotations): wrong annotations fixed on datastructures and requests modules.
* fix(Missing annotation): missing annotations added on applications module.
* fix(): ASGIApp annotation type should be used.
* fix(): Optional typing should be avoided when we have default values.
* fix(applications): unnecessary comment for annotation deleted
* small tweaks
* fix(applications): annotations fixed
* fix: Methods should have None as default value on Path
* fix(applications): Unnecessary annotation removed.
2018-10-16 09:26:37 +01:00
Tom Christie
709bdf38f5
Version 0.4.2
2018-10-15 12:21:01 +01:00