From dfec2d7644524fe15ce96281b77f2cc26f103d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 4 Oct 2019 20:21:53 -0500 Subject: [PATCH] :memo: Update release notes --- docs/release-notes.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index bac89e373..5ed314964 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,5 +1,13 @@ ## Latest changes +* Improve handling of custom classes for `Request`s and `APIRoute`s. + * This helps to more easily solve use cases like: + * Reading a body before and/or after a request (equivalent to a middleware). + * Run middleware-like code only for a subset of *path operations*. + * Process a request before passing it to a *path operation function*. E.g. decompressing, deserializing, etc. + * Processing a response after being generated by *path operation functions* but before returning it. E.g. adding custom headers, logging, adding extra metadata. + * New docs section: [Custom Request and APIRoute class](https://fastapi.tiangolo.com/tutorial/custom-request-and-route/). + * PR [#589](https://github.com/tiangolo/fastapi/pull/589) by [@dmontagu](https://github.com/dmontagu). * Fix preserving custom route class in routers when including other sub-routers. PR [#538](https://github.com/tiangolo/fastapi/pull/538) by [@dmontagu](https://github.com/dmontagu). ## 0.40.0