Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,387 for can (0.21 sec)

  1. docs/en/docs/help-fastapi.md

    * Many PRs don't have tests, you can **remind** them to add tests, or you can even **suggest** some tests yourself. That's one of the things that consume most time and you can help a lot with that.
    
    * Then also comment what you tried, that way I'll know that you checked it. 🤓
    
    ## Create a Pull Request
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/events.md

        You can probably skip this part.
    
    There's an alternative way to define this logic to be executed during *startup* and during *shutdown*.
    
    You can define event handlers (functions) that need to be executed before the application starts up, or when the application is shutting down.
    
    These functions can be declared with `async def` or normal `def`.
    
    ### `startup` event
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  3. CONTRIBUTING.md

    - Revert the Git changes to files in the `.idea` folder
    
    NOTE: Due to the project size, the very first import can take a while and IntelliJ might become unresponsive for several seconds during this period.
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Feb 09 15:30:53 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/body-updates.md

    # Body - Updates
    
    ## Update replacing with `PUT`
    
    To update an item you can use the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT" class="external-link" target="_blank">HTTP `PUT`</a> operation.
    
    You can use the `jsonable_encoder` to convert the input data to data that can be stored as JSON (e.g. with a NoSQL database). For example, converting `datetime` to `str`.
    
    === "Python 3.10+"
    
        ```Python hl_lines="28-33"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/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}
         */
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/settings.md

    // And then call the program again
    $ python main.py
    
    // Now it can read the environment variable
    
    Hello Wade Wilson from Python
    ```
    
    </div>
    
    As environment variables can be set outside of the code, but can be read by the code, and don't have to be stored (committed to `git`) with the rest of the files, it's common to use them for configurations or settings.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  7. docs/en/docs/reference/response.md

    # `Response` class
    
    You can declare a parameter in a *path operation function* or dependency to be of type `Response` and then you can set data for the response like headers or cookies.
    
    You can also use it directly to create an instance of it and return it from your *path operations*.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Response
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 397 bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    So, you can look for that specific exception inside the dependency with `except SomeException`.
    
    In the same way, you can use `finally` to make sure the exit steps are executed, no matter if there was an exception or not.
    
    ```Python hl_lines="3  5"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    ## Sub-dependencies with `yield`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  9. docs/en/docs/reference/middleware.md

    ::: fastapi.middleware.cors.CORSMiddleware
    
    It can be imported from `fastapi`:
    
    ```python
    from fastapi.middleware.cors import CORSMiddleware
    ```
    
    ::: fastapi.middleware.gzip.GZipMiddleware
    
    It can be imported from `fastapi`:
    
    ```python
    from fastapi.middleware.gzip import GZipMiddleware
    ```
    
    ::: fastapi.middleware.httpsredirect.HTTPSRedirectMiddleware
    
    It can be imported from `fastapi`:
    
    ```python
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 991 bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/body-nested-models.md

    ## Nested Models
    
    Each attribute of a Pydantic model has a type.
    
    But that type can itself be another Pydantic model.
    
    So, you can declare deeply nested JSON "objects" with specific attribute names, types and validations.
    
    All that, arbitrarily nested.
    
    ### Define a submodel
    
    For example, we can define an `Image` model:
    
    === "Python 3.10+"
    
        ```Python hl_lines="7-9"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
Back to top