Commit Graph

25 Commits

Author SHA1 Message Date
子休 ced8c350c4
Add RatelimitMiddleware in docs (#988)
* add RatelimitMiddleware

* empty commit to run test

Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-06-29 12:39:10 +01:00
Rene Dohmen 3a0e35dd46
Added StarletteOpentracing to the third party middleware docs (#918) 2020-04-28 13:33:48 +01:00
Derek Bekoe 5b38e832df
Docs: Update middleware.md - CORS max_age 600 (#909)
Update max_age documentation from 60 to the actual default value of 600.
https://github.com/encode/starlette/blob/master/starlette/middleware/cors.py#L23
2020-04-22 11:42:14 +01:00
Alessandro Ogier dd764eced2
adding authlib middleware (#841) 2020-02-20 21:43:37 +00:00
Tom Christie 7f8cd04173
Version 0.13 (#704)
* Version 0.13

* Fix misnamed requirement

* Updating routing docs

* Update routing docs

* Update docs

* Simpler Middleware signature

* Update middleware docs

* Update exception docs

* Allow 'None' in middleware lists, for easy disabling of middleware.

* Update README
2019-11-13 12:25:18 +00:00
Grégoire Détrez 764e88a1ec Fix a small typo in CORS middleware documentation (#708) 2019-11-07 15:18:50 +00:00
Ashin Abraham a2c7f2f2ba Added Documentation For Bugsnag Integration in Starlette (#638) 2019-10-15 13:39:56 +01:00
Igor Nehoroshev 4af6341032 Add link to EarlyDataMiddleware (#666) 2019-10-15 13:35:53 +01:00
Igor Nehoroshev fe86349538 Fix __init__ code in custom HTTP middleware example (#665) 2019-10-15 13:35:37 +01:00
José Antonio Perdiguero López 981f78a1c4 Add Starlette Prometheus to plugins and middlewares docs 2019-08-23 14:33:45 +02:00
Simon Willison a1ad23b39d
Removed rogue newline 2019-07-08 09:06:47 -07:00
Simon Willison b04691452c
Added datasette-auth-github to third party middleware 2019-07-08 09:05:29 -07:00
Daniel Hahler 60c0be1e50 doc: fix middleware (#471) 2019-04-10 14:14:24 +02:00
Steinn Eldjárn Sigurðarson fb616ddf9e Adding a section on timing-asgi to 3rd party middleware (#465) 2019-04-05 11:59:22 +01:00
Igor Nehoroshev eb316509b5 Add security flags to session cookie (#276)
* Add security flags to session cookie

Flags: Secure, HttpOnly and SameSite=lax

* Remove Secure flag

* Add options for security flags in SessionMiddleware

* Add tests for secure session

* Lint files that Travis would like to reformat

Only related to pull request

* Return space between imports

* Add documentation for session security flags options

* Format default values
2018-12-17 16:33:41 +00:00
Tom Christie 8f736f20ac Add SessionMiddleware's max_age to docs 2018-11-08 12:00:51 +00:00
Tom Christie d48bf30b75 Add docs for third party middleware classes 2018-11-06 14:06:25 +00:00
Tom Christie 3e2e3430d1
Add `@app.middleware(...)` decorator (#183)
* Add @app.middleware() decorator

* Linting

* Drop erronous check-in

* Type hinting for BaseHTTPMiddleware
2018-11-06 12:19:52 +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 be6469b381 Docs on BaseHTTPMiddleware 2018-10-29 13:24:37 +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 88fe1799c7 Fix example import statement (#123) 2018-10-18 08:38:07 +01:00
Tom Christie 097152be5a
Add GZip middleware (#111) 2018-10-15 12:08:10 +01:00
Tom Christie 139753f857
Add support for `app.on_event("startup")` and `app.on_event("cleanup")`. (#98)
* Push black linting into ./scripts/test Fix some annotations etc.

* Skip black on 3.7

* Fix script

* Blergh. Shell equality tests are weird

* Attempt to fix equality check

* Document 'allow_origin_regex'

* Support app.on_event('startup') and app.on_event('cleanup')

* Nicer decorator handling for on_event

* Add documentation for app.on_event()
2018-10-09 15:47:51 +01:00
Tom Christie c98c15005e
Middleware and CORS support (#83)
* Tweaks to URL datastructure

* Linting

* Add Middleware

* Type annotations

* CORS support

* Add CORS support

* Fix code example
2018-10-05 16:38:02 +01:00