Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for get_route_handler (0.06 sec)

  1. docs/es/docs/how-to/custom-request-and-route.md

    ### Crear una clase personalizada `GzipRoute`
    
    A continuación, creamos una subclase personalizada de `fastapi.routing.APIRoute` que hará uso de `GzipRequest`.
    
    Esta vez, sobrescribirá el método `APIRoute.get_route_handler()`.
    
    Este método devuelve una función. Y esa función es la que recibirá un request y devolverá un response.
    
    Aquí lo usamos para crear un `GzipRequest` a partir del request original.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/custom-request-and-route.md

    Next, we create a custom subclass of `fastapi.routing.APIRoute` that will make use of the `GzipRequest`.
    
    This time, it will overwrite the method `APIRoute.get_route_handler()`.
    
    This method returns a function. And that function is what will receive a request and return a response.
    
    Here we use it to create a `GzipRequest` from the original request.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top