From 8d973c25bdb316749610c5fa8b6db151e73465da Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 16 Nov 2018 14:04:08 +0000 Subject: [PATCH] Version 0.8.5 --- docs/release-notes.md | 10 ++++++++++ docs/routing.md | 6 ++++++ starlette/__init__.py | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 2025df29..952fdea2 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,3 +1,13 @@ +## 0.8.5 + +* Support URL convertors. +* Support HTTP 304 cache responses from `StaticFiles`. +* Resolve character escaping issue with form data. + +## 0.8.4 + +* Default to empty body on responses. + ## 0.8.3 * Add 'name' argument to `@app.route()`. diff --git a/docs/routing.md b/docs/routing.md index 2a59a976..8464a085 100644 --- a/docs/routing.md +++ b/docs/routing.md @@ -19,6 +19,12 @@ Paths can use URI templating style to capture path components. Route('/users/{username}', endpoint=User, methods=['GET']) ``` +Convertors for `int`, `float`, and `path` are also available: + +```python +Route('/users/{user_id:int}', endpoint=User, methods=['GET']) +``` + Path parameters are made available in the request, as the `request.path_params` dictionary. diff --git a/starlette/__init__.py b/starlette/__init__.py index fa3ddd8c..af46754d 100644 --- a/starlette/__init__.py +++ b/starlette/__init__.py @@ -1 +1 @@ -__version__ = "0.8.4" +__version__ = "0.8.5" -- 2.47.3