You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/release-notes.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
## Latest changes
2
2
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).
3
11
* 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 commit comments