Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 677 for that (0.03 sec)

  1. docs/en/docs/advanced/security/http-basic-auth.md

    `secrets.compare_digest()` needs to take `bytes` or a `str` that only contains ASCII characters (the ones in English), this means it wouldn't work with characters like `á`, as in `Sebastián`.
    
    To handle that, we first convert the `username` and `password` to `bytes` encoding them with UTF-8.
    
    Then we can use `secrets.compare_digest()` to ensure that `credentials.username` is `"stanleyjobson"`, and that `credentials.password` is `"swordfish"`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 16:01:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/security/oauth2-scopes.md

    We also verify that we have a user with that username, and if not, we raise that same exception we created before.
    
    {* ../../docs_src/security/tutorial005_an_py310.py hl[47,117:128] *}
    
    ## Verify the `scopes`
    
    We now verify that all the scopes required, by this dependency and all the dependants (including *path operations*), are included in the scopes provided in the token received, otherwise raise an `HTTPException`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:02:16 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/behind-a-proxy.md

    # Behind a Proxy
    
    In some situations, you might need to use a **proxy** server like Traefik or Nginx with a configuration that adds an extra path prefix that is not seen by your application.
    
    In these cases you can use `root_path` to configure your application.
    
    The `root_path` is a mechanism provided by the ASGI specification (that FastAPI is built on, through Starlette).
    
    The `root_path` is used to handle these specific cases.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:49:49 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/separate-openapi-schemas.md

    </div>
    
    This means that it will **always have a value**, it's just that sometimes the value could be `None` (or `null` in JSON).
    
    That means that, clients using your API don't have to check if the value exists or not, they can **assume the field will always be there**, but just that in some cases it will have the default value of `None`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 16:43:54 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/openapi-webhooks.md

    # OpenAPI Webhooks
    
    There are cases where you want to tell your API **users** that your app could call *their* app (sending a request) with some data, normally to **notify** of some type of **event**.
    
    This means that instead of the normal process of your users sending requests to your API, it's **your API** (or your app) that could **send requests to their system** (to their API, their app).
    
    This is normally called a **webhook**.
    
    ## Webhooks steps
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:38:23 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/ProjectDependenciesResolver.java

         * @param scopesToCollect The dependency scopes that should be collected, may be {@code null}.
         * @param scopesToResolve The dependency scopes that should be collected and also resolved, may be {@code null}.
         * @param session         The current build session, must not be {@code null}.
         * @return The transitive dependencies of the specified project that match the requested scopes, never {@code null}.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/advanced-dependencies.md

    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.
    
    ## A "callable" instance
    
    In Python there's a way to make an instance of a class a "callable".
    
    Not the class itself (which is already a callable), but an instance of that class.
    
    To do that, we declare a method `__call__`:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:10:15 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilter.java

       *   <li>have equal funnels
       * </ul>
       *
       * @param that The Bloom filter to check for compatibility.
       * @since 15.0
       */
      public boolean isCompatible(BloomFilter<T> that) {
        checkNotNull(that);
        return this != that
            && this.numHashFunctions == that.numHashFunctions
            && this.bitSize() == that.bitSize()
            && this.strategy.equals(that.strategy)
            && this.funnel.equals(that.funnel);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/utils/Os.java

        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_OS2 = "os/2";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_NETWARE = "netware";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_DOS = "dos";
    
        /**
         * OS family that can be tested for. {@value}
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Ordering.java

      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is greater than or
       * equal to the element that preceded it, according to this ordering. Note that this is always
       * true when the iterable has fewer than two elements.
       *
       * <p><b>Java 8+ users:</b> Use the equivalent {@link Comparators#isInOrder(Iterable, Comparator)}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top