Skip to content

Commit dfec2d7

Browse files
committed
📝 Update release notes
1 parent 8c3ef76 commit dfec2d7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/release-notes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## Latest changes
22

3+
* Improve handling of custom classes for `Request`s and `APIRoute`s.
4+
* This helps to more easily solve use cases like:
5+
* Reading a body before and/or after a request (equivalent to a middleware).
6+
* Run middleware-like code only for a subset of *path operations*.
7+
* Process a request before passing it to a *path operation function*. E.g. decompressing, deserializing, etc.
8+
* Processing a response after being generated by *path operation functions* but before returning it. E.g. adding custom headers, logging, adding extra metadata.
9+
* New docs section: [Custom Request and APIRoute class](https://fastapi.tiangolo.com/tutorial/custom-request-and-route/).
10+
* PR [#589](https://github.com/tiangolo/fastapi/pull/589) by [@dmontagu](https://github.com/dmontagu).
311
* 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).
412

513
## 0.40.0

0 commit comments

Comments
 (0)