Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 616 for can (0.14 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. docs/en/docs/how-to/configure-swagger-ui.md

    ```JavaScript
    presets: [
        SwaggerUIBundle.presets.apis,
        SwaggerUIBundle.SwaggerUIStandalonePreset
    ]
    ```
    
    These are **JavaScript** objects, not strings, so you can't pass them from Python code directly.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. doc/godebug.md

    not the older version.
    
    To override these defaults, a main package's source files
    can include one or more `//go:debug` directives at the top of the file
    (preceding the `package` statement).
    Continuing the `panicnil` example, if the module or workspace is updated
    to say `go` `1.21`, the program can opt back into the old `panic(nil)`
    behavior by including this directive:
    
    	//go:debug panicnil=1
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  10. docs/en/docs/reference/exceptions.md

    These are the exceptions that you can raise to show errors to the client.
    
    When you raise an exception, as would happen with normal Python, the rest of the execution is aborted. This way you can raise these exceptions from anywhere in the code to abort a request and show the error to the client.
    
    You can use:
    
    * `HTTPException`
    * `WebSocketException`
    
    These exceptions can be imported directly from `fastapi`:
    
    ```python
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 597 bytes
    - Viewed (0)
Back to top