File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -48,39 +48,39 @@ outgoing responses:
48
48
49
49
50
50
51
- Migrating to `` ASGIMiddleware `` from ``MiddlewareProtocol `` / ``AbstractMiddleware ``
51
+ Migrating from ``MiddlewareProtocol `` / ``AbstractMiddleware ``
52
52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
53
53
54
54
:class: `~litestar.middleware.ASGIMiddleware ` was introduced in Litestar 2.15. If you've
55
55
been using ``MiddlewareProtocol `` / ``AbstractMiddleware `` to implement your middlewares
56
56
before, there's a simple migration path to using ``ASGIMiddleware ``.
57
57
58
- **Migrating from `` MiddlewareProtocol`` **
58
+ **From MiddlewareProtocol **
59
59
60
60
.. tab-set ::
61
61
62
- .. tab-item :: `` MiddlewareProtocol``
62
+ .. tab-item :: MiddlewareProtocol
63
63
64
64
.. literalinclude :: /examples/middleware/middleware_protocol_migration_old.py
65
65
:language: python
66
66
67
- .. tab-item :: `` ASGIMiddleware``
67
+ .. tab-item :: ASGIMiddleware
68
68
69
69
.. literalinclude :: /examples/middleware/middleware_protocol_migration_new.py
70
70
:language: python
71
71
72
72
73
73
74
- **Migrating from `` AbstractMiddleware`` **
74
+ **From AbstractMiddleware **
75
75
76
76
.. tab-set ::
77
77
78
- .. tab-item :: `` MiddlewareProtocol``
78
+ .. tab-item :: MiddlewareProtocol
79
79
80
80
.. literalinclude :: /examples/middleware/abstract_middleware_migration_old.py
81
81
:language: python
82
82
83
- .. tab-item :: `` ASGIMiddleware``
83
+ .. tab-item :: ASGIMiddleware
84
84
85
85
.. literalinclude :: /examples/middleware/abstract_middleware_migration_new.py
86
86
:language: python
You can’t perform that action at this time.
0 commit comments