Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Innermost (0.08 sec)

  1. docs/en/docs/tutorial/middleware.md

    When you add multiple middlewares using either `@app.middleware()` decorator or `app.add_middleware()` method, each new middleware wraps the application, forming a stack. The last middleware added is the *outermost*, and the first is the *innermost*.
    
    On the request path, the *outermost* middleware runs first.
    
    On the response path, it runs last.
    
    For example:
    
    ```Python
    app.add_middleware(MiddlewareA)
    app.add_middleware(MiddlewareB)
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top