Skip to content

Commit 6cf631b

Browse files
authored
doc: Fix ASGIMiddleware docs (#4031) (#4038)
1 parent 07841d0 commit 6cf631b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/usage/middleware/creating-middleware.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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
5555
been using ``MiddlewareProtocol`` / ``AbstractMiddleware`` to implement your middlewares
5656
before, 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

0 commit comments

Comments
 (0)