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:
4848
4949
5050
51- Migrating to `` ASGIMiddleware `` from ``MiddlewareProtocol `` / ``AbstractMiddleware ``
51+ Migrating from ``MiddlewareProtocol `` / ``AbstractMiddleware ``
5252++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5353
5454:class: `~litestar.middleware.ASGIMiddleware ` was introduced in Litestar 2.15. If you've
5555been using ``MiddlewareProtocol `` / ``AbstractMiddleware `` to implement your middlewares
5656before, there's a simple migration path to using ``ASGIMiddleware ``.
5757
58- **Migrating from `` MiddlewareProtocol`` **
58+ **From MiddlewareProtocol **
5959
6060.. tab-set ::
6161
62- .. tab-item :: `` MiddlewareProtocol``
62+ .. tab-item :: MiddlewareProtocol
6363
6464 .. literalinclude :: /examples/middleware/middleware_protocol_migration_old.py
6565 :language: python
6666
67- .. tab-item :: `` ASGIMiddleware``
67+ .. tab-item :: ASGIMiddleware
6868
6969 .. literalinclude :: /examples/middleware/middleware_protocol_migration_new.py
7070 :language: python
7171
7272
7373
74- **Migrating from `` AbstractMiddleware`` **
74+ **From AbstractMiddleware **
7575
7676.. tab-set ::
7777
78- .. tab-item :: `` MiddlewareProtocol``
78+ .. tab-item :: MiddlewareProtocol
7979
8080 .. literalinclude :: /examples/middleware/abstract_middleware_migration_old.py
8181 :language: python
8282
83- .. tab-item :: `` ASGIMiddleware``
83+ .. tab-item :: ASGIMiddleware
8484
8585 .. literalinclude :: /examples/middleware/abstract_middleware_migration_new.py
8686 :language: python
You can’t perform that action at this time.
0 commit comments