Search Options

Results per page
Sort
Preferred Languages
Advance

Results 601 - 610 of 1,562 for example (0.12 sec)

  1. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

       * Builder} constructor.
       */
      public static <B> Builder<B> builder() {
        return new Builder<>();
      }
    
      /**
       * A builder for creating immutable class-to-instance maps. Example:
       *
       * <pre>{@code
       * static final ImmutableClassToInstanceMap<Handler> HANDLERS =
       *     new ImmutableClassToInstanceMap.Builder<Handler>()
       *         .put(FooHandler.class, new FooHandler())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 10 21:56:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. README.md

    ```console
    $ pip install "fastapi[standard]"
    
    ---> 100%
    ```
    
    </div>
    
    **Note**: Make sure you put `"fastapi[standard]"` in quotes to ensure it works in all terminals.
    
    ## Example
    
    ### Create it
    
    * Create a file `main.py` with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 09:13:26 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    read_query["/items/"]
    
    query_extractor --> query_or_cookie_extractor --> read_query
    ```
    
    ## Using the same dependency multiple times
    
    If one of your dependencies is declared multiple times for the same *path operation*, for example, multiple dependencies have a common sub-dependency, **FastAPI** will know to call that sub-dependency only once per request.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. README.md

    open-source software development.
    
    ## Patching guidelines
    
    Follow these steps to patch a specific version of TensorFlow, for example, to
    apply fixes to bugs or security vulnerabilities:
    
    *   Clone the TensorFlow repo and switch to the corresponding branch for your
        desired TensorFlow version, for example, branch `r2.8` for version 2.8.
    *   Apply (that is, cherry-pick) the desired changes and resolve any code
        conflicts.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 05 15:00:10 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      // http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html
      //  - Some providers may choose to also include alias names.
      //  - For example, the "SHA-1" algorithm might be referred to as "SHA1".
      //  - The algorithm name is not case-sensitive.
      private static final ImmutableMap<String, HashFunction> ALGORITHMS =
          new ImmutableMap.Builder<String, HashFunction>()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/middleware.md

    πŸ› οΈ πŸ‘ˆ 🌐 πŸ“¨ πŸ“¨ βœ”οΈ β˜‘ βš’ `Host` 🎚, βœ” πŸ’‚β€β™‚ πŸ›‘ πŸ‡ΊπŸ‡ΈπŸ” 🦠 🎚 πŸ‘Š.
    
    ```Python hl_lines="2  6-8"
    {!../../docs_src/advanced_middleware/tutorial002.py!}
    ```
    
    πŸ“„ ❌ πŸ•β€πŸ¦Ί:
    
    * `allowed_hosts` - πŸ“‡ πŸ†” πŸ“› πŸ‘ˆ πŸ”œ βœ” πŸ“›. πŸƒ πŸ†” βœ… `*.example.com` πŸ•β€πŸ¦Ί πŸŽ€ πŸ“. βœ” πŸ™† πŸ“› πŸ‘―β€β™‚οΈ βš™οΈ `allowed_hosts=["*"]` βš–οΈ 🚫 πŸ› οΈ.
    
    πŸš₯ πŸ“¨ πŸ“¨ πŸ”¨ 🚫 βœ” β˜‘ ‴️ `400` πŸ“¨ πŸ”œ πŸ“¨.
    
    ## `GZipMiddleware`
    
    🍡 πŸ—œ πŸ“¨ πŸ™† πŸ“¨ πŸ‘ˆ πŸ”Œ `"gzip"` `Accept-Encoding` 🎚.
    
    πŸ› οΈ πŸ”œ 🍡 πŸ‘―β€β™‚οΈ 🐩 &amp; πŸŽ₯ πŸ“¨.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial003.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "johndoe",
            "full_name": "John Doe",
            "email": "johndoe@example.com",
            "hashed_password": "fakehashedsecret",
            "disabled": False,
        }
    
    
    def test_incorrect_token():
        response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Floats.java

       * specified by {@link Float#toString(float)}, and separated by {@code separator}. For example,
       * {@code join("-", 1.0f, 2.0f, 3.0f)} returns the string {@code "1.0-2.0-3.0"}.
       *
       * <p>Note that {@link Float#toString(float)} formats {@code float} differently in GWT. In the
       * previous example, it returns the string {@code "1-2-3"}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/Doubles.java

       * specified by {@link Double#toString(double)}, and separated by {@code separator}. For example,
       * {@code join("-", 1.0, 2.0, 3.0)} returns the string {@code "1.0-2.0-3.0"}.
       *
       * <p>Note that {@link Double#toString(double)} formats {@code double} differently in GWT
       * sometimes. In the previous example, it returns the string {@code "1-2-3"}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/Floats.java

       * specified by {@link Float#toString(float)}, and separated by {@code separator}. For example,
       * {@code join("-", 1.0f, 2.0f, 3.0f)} returns the string {@code "1.0-2.0-3.0"}.
       *
       * <p>Note that {@link Float#toString(float)} formats {@code float} differently in GWT. In the
       * previous example, it returns the string {@code "1-2-3"}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top