Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 398 for declarou (0.13 sec)

  1. docs/pt/docs/async.md

    Se você estiver utilizando bibliotecas de terceiros que dizem para você chamar as funções com `await`, como:
    
    ```Python
    results = await some_library()
    ```
    
    Então, declare sua *função de operação de rota* com `async def` como:
    
    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
        return results
    ```
    
    /// note
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/header-params.md

    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="3"
    {!> ../../docs_src/header_params/tutorial001.py!}
    ```
    
    ////
    
    ## Declare `Header` parameters
    
    Then declare the header parameters using the same structure as with `Path`, `Query` and `Cookie`.
    
    You can define the default value as well as all the extra validation or annotation parameters:
    
    //// tab | Python 3.10+
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. test-site/activator

    ###  ------------------------------- ###
    
    declare -a residual_args
    declare -a java_args
    declare -a app_commands
    declare -r real_script_path="$(realpath "$0")"
    declare -r activator_home="$(realpath "$(dirname "$real_script_path")")"
    declare -r app_version="1.3.2"
    
    declare -r app_launcher="${activator_home}/activator-launch-${app_version}.jar"
    declare -r script_name=activator
    java_cmd=$(get_java_cmd)
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 9.3K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/dependencies/index.md

    ## O que é "Injeção de Dependência"
    
    **"Injeção de Dependência"** no mundo da programação significa, que existe uma maneira de declarar no seu código (nesse caso, suas *funções de operação de rota*) para declarar as coisas que ele precisa para funcionar e que serão utilizadas: "dependências".
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/header-param-models.md

    This would allow you to **re-use the model** in **multiple places** and also to declare validations and metadata for all the parameters at once. 😎
    
    /// note
    
    This is supported since FastAPI version `0.115.0`. 🤓
    
    ///
    
    ## Header Parameters with a Pydantic Model
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/advanced-dependencies.md

    # Advanced 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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:10:15 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/cookie-params.md

    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="3"
    {!> ../../docs_src/cookie_params/tutorial001.py!}
    ```
    
    ////
    
    ## Declare `Cookie` parameters
    
    Then declare the cookie parameters using the same structure as with `Path` and `Query`.
    
    You can define the default value as well as all the extra validation or annotation parameters:
    
    //// tab | Python 3.10+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. docs/es/docs/advanced/response-headers.md

    # Headers de Respuesta
    
    ## Usar un parámetro `Response`
    
    Puedes declarar un parámetro de tipo `Response` en tu *función de operación de path* (de manera similar como se hace con las cookies).
    
    Y entonces, podrás configurar las cookies en ese objeto de response *temporal*.
    
    ```Python hl_lines="1  7-8"
    {!../../docs_src/response_headers/tutorial002.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Ou a dependência não retorna nenhum valor.
    
    Mas você ainda precisa que ela seja executada/resolvida.
    
    Para esses casos, em vez de declarar um parâmetro em uma *função de operação de rota* com `Depends`, você pode adicionar um argumento `dependencies` do tipo `list` ao decorador da operação de rota.
    
    ## Adicionando `dependencies` ao decorador da operação de rota
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/SerializableTester.java

       *
       * <p>Note that the specified object may not be known by the compiler to be a {@link
       * java.io.Serializable} instance, and is thus declared an {@code Object}. For example, it might
       * be declared as a {@code List}.
       *
       * @return the re-serialized object
       * @throws RuntimeException if the specified object was not successfully serialized or
       *     deserialized
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top