Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for middleware (0.07 sec)

  1. docs/en/docs/advanced/middleware.md

    ```
    
    `app.add_middleware()` receives a middleware class as the first argument and any additional arguments to be passed to the middleware.
    
    ## Integrated middlewares
    
    **FastAPI** includes several middlewares for common use cases, we'll see next how to use them.
    
    /// note | "Technical Details"
    
    For the next examples, you could also use `from starlette.middleware.something import SomethingMiddleware`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:45:50 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/middleware.md

    ```
    
    `app.add_middleware()` recebe uma classe de middleware como o primeiro argumento e quaisquer argumentos adicionais a serem passados para o middleware.
    
    ## Middlewares Integrados
    
    **FastAPI** inclui vários middlewares para casos de uso comuns, veremos a seguir como usá-los.
    
    /// note | Detalhes Técnicos
    
    Para o próximo exemplo, você também poderia usar `from starlette.middleware.something import SomethingMiddleware`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 30 20:00:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. docs/pt/docs/how-to/custom-request-and-route.md

    # Requisições Personalizadas e Classes da APIRoute
    
    Em algum casos, você pode querer sobreescrever a lógica usada pelas classes `Request`e `APIRoute`.
    
    Em particular, isso pode ser uma boa alternativa para uma lógica em um middleware
    
    Por exemplo, se você quiser ler ou manipular o corpo da requisição antes que ele seja processado pela sua aplicação.
    
    /// danger | Perigo
    
    Isso é um recurso "avançado".
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 17:33:00 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. docs/en/mkdocs.yml

          - tutorial/security/index.md
          - tutorial/security/first-steps.md
          - tutorial/security/get-current-user.md
          - tutorial/security/simple-oauth2.md
          - tutorial/security/oauth2-jwt.md
        - tutorial/middleware.md
        - tutorial/cors.md
        - tutorial/sql-databases.md
        - tutorial/bigger-applications.md
        - tutorial/background-tasks.md
        - tutorial/metadata.md
        - tutorial/static-files.md
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 20:28:02 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/custom-request-and-route.md

    # Custom Request and APIRoute class
    
    In some cases, you may want to override the logic used by the `Request` and `APIRoute` classes.
    
    In particular, this may be a good alternative to logic in a middleware.
    
    For example, if you want to read or manipulate the request body before it is processed by your application.
    
    /// danger
    
    This is an "advanced" feature.
    
    If you are just starting with **FastAPI** you might want to skip this section.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 22:39:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. pyproject.toml

    [tool.pytest.ini_options]
    addopts = [
      "--strict-config",
      "--strict-markers",
      "--ignore=docs_src",
    ]
    xfail_strict = true
    junit_family = "xunit2"
    filterwarnings = [
        "error",
        'ignore:starlette.middleware.wsgi is deprecated and will be removed in a future release\..*:DeprecationWarning:starlette',
        # For passlib
        "ignore:'crypt' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 14:19:56 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. go.mod

    	github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
    	github.com/google/uuid v1.6.0
    	github.com/gorilla/mux v1.8.1
    	github.com/gorilla/websocket v1.5.3
    	github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
    	github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
    	github.com/hashicorp/go-multierror v1.1.1
    	github.com/hashicorp/go-version v1.7.0
    	github.com/hashicorp/golang-lru/v2 v2.0.7
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Nov 06 06:23:25 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

        * This can solve nuanced errors when using middlewares. Before Starlette `0.24.0`, a new instance of each middleware class would be created when a new middleware was added. That normally was not a problem, unless the middleware class expected to be created only once, with only one instance, that happened in some cases. This upgrade would solve those cases (thanks [@adriangb](https:/...
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
  9. go.sum

    github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
    github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI=
    github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8=
    github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Nov 06 06:23:25 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/behind-a-proxy.md

    ```TOML hl_lines="5  12  20"
    [http]
      [http.middlewares]
    
        [http.middlewares.api-stripprefix.stripPrefix]
          prefixes = ["/api/v1"]
    
      [http.routers]
    
        [http.routers.app-http]
          entryPoints = ["http"]
          service = "app"
          rule = "PathPrefix(`/api/v1`)"
          middlewares = ["api-stripprefix"]
    
      [http.services]
    
        [http.services.app]
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:28:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top