Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 1,510 for EXAMPLE (0.05 seconds)

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

    You can add code to be run with the `request`,  before any *path operation* receives it.
    
    And also after the `response` is generated, before returning it.
    
    For example, you could add a custom header `X-Process-Time` containing the time in seconds that it took to process the request and generate a response:
    
    {* ../../docs_src/middleware/tutorial001_py310.py hl[10,12:13] *}
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  2. docs/pt/llm-prompt.md

    ### Target language
    
    Translate to Portuguese (Português).
    
    Language code: pt.
    
    For instructions or titles in imperative, keep them in imperative, for example "Import FastAPI" to "Importe o FastAPI".
    
    Keep existing translations as they are if the term is already translated.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 16 12:27:02 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  3. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/LifecycleProvider.java

     * <p>
     * Implementations of this interface will be discovered through the Java ServiceLoader mechanism
     * and their provided lifecycles will be available throughout the Maven build process.
     * <p>
     * Example usage:
     * <pre>
     * public class CustomLifecycleProvider implements LifecycleProvider {
     *     public Collection&lt;Lifecycle&gt; provides() {
     *         return Collections.singleton(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  4. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/PathScopeProvider.java

     * <p>
     * Implementations of this interface will be discovered through the Java ServiceLoader mechanism
     * and their provided path scopes will be available throughout the Maven build process.
     * <p>
     * Example usage:
     * <pre>
     * public class CustomPathScopeProvider implements PathScopeProvider {
     *     public Collection&lt;PathScope&gt; provides() {
     *         return Collections.singleton(pathScope("integration-test",
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  5. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/TypeProvider.java

     * <p>
     * Implementations of this interface will be discovered through the Java ServiceLoader mechanism
     * and their provided types will be available throughout the Maven build process.
     * <p>
     * Example usage:
     * <pre>
     * public class CustomTypeProvider implements TypeProvider {
     *     public Collection&lt;Type&gt; provides() {
     *         return Arrays.asList(
     *             type("kotlin-library", "jar", "kotlin"),
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  6. api/maven-api-di/src/main/java/org/apache/maven/api/di/Priority.java

     * of the same type are available.
     * <p>
     * Higher values indicate higher priority. When multiple implementations of the same
     * type exist, the one with the highest priority will be selected for injection.
     * <p>
     * Example usage:
     * <pre>
     * {@literal @}Priority(100)
     * public class PreferredImplementation implements Service {
     *     // Implementation
     * }
     * </pre>
     *
     * @since 4.0.0
     */
    @Target({TYPE, METHOD})
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jan 30 23:28:59 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/cache/CacheBuilder.java

     * </ul>
     *
     * <p>These features are all optional; caches can be created using all or none of them. By default,
     * cache instances created by {@code CacheBuilder} will not perform any type of eviction.
     *
     * <p>Usage example:
     *
     * {@snippet :
     * LoadingCache<Key, Graph> graphs = CacheBuilder.newBuilder()
     *     .maximumSize(10000)
     *     .expireAfterWrite(Duration.ofMinutes(10))
     *     .removalListener(MY_LISTENER)
     *     .build(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 52K bytes
    - Click Count (0)
  8. scripts/tests/test_translation_fixer/test_code_blocks/data/translated_doc_lines_number_gt.md

    def hello_world():
        # Comment with indentation
        print("Hello, world!")  # Print greeting
    ```
    
    Some more text
    
    ```toml
    # Extra line
    # This is a sample TOML code block
    title = "TOML Example"  # Title of the document
    ```
    
    And more text
    
    ```console
    // Use the command "live" and pass the language code as a CLI argument
    $ python ./scripts/docs.py live es
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 896 bytes
    - Click Count (0)
  9. docs/en/docs/deployment/manually.md

                 to quit<b>)</b>
    ```
    
    </div>
    
    That would work for most of the cases. 😎
    
    You could use that command for example to start your **FastAPI** app in a container, in a server, etc.
    
    ## ASGI Servers { #asgi-servers }
    
    Let's go a little deeper into the details.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  10. guava/src/com/google/common/cache/Cache.java

       * value. Otherwise, a call that passes one {@code loader} may return the result of another call
       * with a differently behaving {@code loader}. For example, a call that requests a short timeout
       * for an RPC may wait for a similar call that requests a long timeout, or a call by an
       * unprivileged user may return a resource accessible only to a privileged user making a similar
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 8K bytes
    - Click Count (0)
Back to Top