Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 270 for declarou (0.08 sec)

  1. docs/en/docs/advanced/advanced-dependencies.md

    ## Parameterized dependencies { #parameterized-dependencies }
    
    All the dependencies we have seen are a fixed function or class.
    
    But there could be cases where you want to be able to set parameters on the dependency, without having to declare many different functions or classes.
    
    Let's imagine that we want to have a dependency that checks if the query parameter `q` contains some fixed content.
    
    But we want to be able to parameterize that fixed content.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  2. docs/es/docs/advanced/using-request-directly.md

    Imaginemos que quieres obtener la dirección IP/host del cliente dentro de tu *path operation function*.
    
    Para eso necesitas acceder al request directamente.
    
    {* ../../docs_src/using_request_directly/tutorial001.py hl[1,7:8] *}
    
    Al declarar un parámetro de *path operation function* con el tipo siendo `Request`, **FastAPI** sabrá pasar el `Request` en ese parámetro.
    
    /// tip | Consejo
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for the {@link AllocInfo} interface.
     * Since {@code AllocInfo} only declares getters, the tests focus on
     * verifying that implementations honour the contract.
     */
    @ExtendWith(MockitoExtension.class)
    public class AllocInfoTest {
    
        @Mock
        AllocInfo mockAllocInfo;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/Closer.java

       *
       * @return this method does not return; it always throws
       * @throws IOException when the given throwable is an IOException
       * @throws X1 when the given throwable is of the declared type X1
       * @throws X2 when the given throwable is of the declared type X2
       */
      public <X1 extends Exception, X2 extends Exception> RuntimeException rethrow(
          Throwable e, Class<X1> declaredType1, Class<X2> declaredType2) throws IOException, X1, X2 {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/path-params.md

    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Path parameters with types { #path-parameters-with-types }
    
    You can declare the type of a path parameter in the function, using standard Python type annotations:
    
    {* ../../docs_src/path_params/tutorial002.py hl[7] *}
    
    In this case, `item_id` is declared to be an `int`.
    
    /// check
    
    This will give you editor support inside of your function, with error checks, completion, etc.
    
    ///
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  6. docs/es/docs/advanced/response-headers.md

    # Response Headers
    
    ## Usa un parámetro `Response`
    
    Puedes declarar un parámetro de tipo `Response` en tu *función de path operation* (como puedes hacer para cookies).
    
    Y luego puedes establecer headers en ese objeto de response *temporal*.
    
    {* ../../docs_src/response_headers/tutorial002.py hl[1, 7:8] *}
    
    Y luego puedes devolver cualquier objeto que necesites, como harías normalmente (un `dict`, un modelo de base de datos, etc).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 17:46:44 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. docs/es/docs/index.md

    * La documentación alternativa también reflejará el nuevo parámetro de query y body:
    
    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-06-redoc-02.png)
    
    ### Resumen
    
    En resumen, declaras **una vez** los tipos de parámetros, body, etc. como parámetros de función.
    
    Lo haces con tipos estándar modernos de Python.
    
    No tienes que aprender una nueva sintaxis, los métodos o clases de un paquete específico, etc.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    We can do better...
    
    ## What makes a dependency { #what-makes-a-dependency }
    
    Up to now you have seen dependencies declared as functions.
    
    But that's not the only way to declare dependencies (although it would probably be the more common).
    
    The key factor is that a dependency should be a "callable".
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/advanced-dependencies.md

    ## Dependencias con parámetros
    
    Todas las dependencias que hemos visto son una función o clase fija.
    
    Pero podría haber casos en los que quieras poder establecer parámetros en la dependencia, sin tener que declarar muchas funciones o clases diferentes.
    
    Imaginemos que queremos tener una dependencia que revise si el parámetro de query `q` contiene algún contenido fijo.
    
    Pero queremos poder parametrizar ese contenido fijo.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/reflect/TypeResolver.java

              // Since this is an artificially generated type variable, we don't bother checking
              // subtyping between declared type bound and actual type bound. So it's possible that we
              // may generate something like <capture#1-of ? extends Foo&SubFoo>.
              // Checking subtype between declared and actual type bounds
              // adds recursive isSubtypeOf() call and feels complicated.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
Back to top