Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,205 for Course (0.21 sec)

  1. docs/en/docs/tutorial/query-params.md

    ```
    http://127.0.0.1:8000/items/foo-item?needy=sooooneedy
    ```
    
    ...this would work:
    
    ```JSON
    {
        "item_id": "foo-item",
        "needy": "sooooneedy"
    }
    ```
    
    And of course, you can define some parameters as required, some as having a default value, and some entirely optional:
    
    === "Python 3.10+"
    
        ```Python hl_lines="8"
        {!> ../../../docs_src/query_params/tutorial006_py310.py!}
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Oct 20 09:08:42 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/websockets.md

    Or you might have any other way to communicate with the WebSocket endpoint.
    
    ---
    
    But for this example, we'll use a very simple HTML document with some JavaScript, all inside a long string.
    
    This, of course, is not optimal and you wouldn't use it for production.
    
    In production you would have one of the options above.
    
    But it's the simplest way to focus on the server-side of WebSockets and have a working example:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         *
         * Both scenarios are bad: The output Future might never complete, or, if it does complete, it
         * might not run some of its listeners. The likely result is that the app will hang. (And of
         * course stack overflows are bad news in general. For example, we may have overflowed in the
         * middle of defining a class. If so, that class will never be loadable in this process.) The
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/StreamsTest.java

            Stream.<@Nullable Object>of((Object) null).flatMap(unused -> Stream.of("a", "b", "c")));
      }
    
      private void testMapWithIndex_closeIsPropagated(Stream<String> source) {
        AtomicInteger stringsCloseCount = new AtomicInteger();
        Stream<String> strings = source.onClose(stringsCloseCount::incrementAndGet);
        Stream<String> withIndex = Streams.mapWithIndex(strings, (str, i) -> str + ":" + i);
    
        withIndex.close();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/Helpers.java

      public static void assertEqualIgnoringOrder(Iterable<?> expected, Iterable<?> actual) {
        List<?> exp = copyToList(expected);
        List<?> act = copyToList(actual);
        String actString = act.toString();
    
        // Of course we could take pains to give the complete description of the
        // problem on any failure.
    
        // Yeah it's n^2.
        for (Object object : exp) {
          if (!act.remove(object)) {
            Assert.fail(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/extra-models.md

        full_name = user_dict["full_name"],
        hashed_password = hashed_password,
    )
    ```
    
    !!! warning
        The supporting additional functions are just to demo a possible flow of the data, but they of course are not providing any real security.
    
    ## Reduce duplication
    
    Reducing code duplication is one of the core ideas in **FastAPI**.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  7. docs/en/docs/tutorial/schema-extra-example.md

    ### Example in the docs UI
    
    With any of the methods above it would look like this in the `/docs`:
    
    <img src="/img/tutorial/body-fields/image01.png">
    
    ### `Body` with multiple `examples`
    
    You can of course also pass multiple `examples`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="23-38"
        {!> ../../../docs_src/schema_extra_example/tutorial004_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  8. gradlew

    # character that might be a shell metacharacter, then use eval to reverse
    # that process (while maintaining the separation between arguments), and wrap
    # the whole thing up as a single "set" statement.
    #
    # This will of course break if any of these variables contains a newline or
    # an unmatched quote.
    #
    
    eval "set -- $(
            printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
            xargs -n1 |
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 24 09:00:26 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  9. docs/en/docs/deployment/docker.md

    It would depend mainly on the tool you use to **install** those requirements.
    
    The most common way to do it is to have a file `requirements.txt` with the package names and their versions, one per line.
    
    You would of course use the same ideas you read in [About FastAPI versions](versions.md){.internal-link target=_blank} to set the ranges of versions.
    
    For example, your `requirements.txt` could look like:
    
    ```
    fastapi>=0.68.0,<0.69.0
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/behind-a-proxy.md

    We get the same response:
    
    ```JSON
    {
        "message": "Hello World",
        "root_path": "/api/v1"
    }
    ```
    
    but this time at the URL with the prefix path provided by the proxy: `/api/v1`.
    
    Of course, the idea here is that everyone would access the app through the proxy, so the version with the path prefix `/api/v1` is the "correct" one.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (2)
Back to top