Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 1,241 for Rome (0.02 sec)

  1. docs/en/docs/advanced/events.md

    Let's start with an example **use case** and then see how to solve it with this.
    
    Let's imagine that you have some **machine learning models** that you want to use to handle requests. 🤖
    
    The same models are shared among requests, so, it's not one model per request, or one per user or something similar.
    
    Let's imagine that loading the model can **take quite some time**, because it has to read a lot of **data from disk**. So you don't want to do it for every request.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. docs_src/background_tasks/tutorial001_py39.py

            email_file.write(content)
    
    
    @app.post("/send-notification/{email}")
    async def send_notification(email: str, background_tasks: BackgroundTasks):
        background_tasks.add_task(write_notification, email, message="some notification")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 519 bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py39.py hl[6] *}
    
    ### Utilizando o nome da *função de operação de rota* como o operationId { #using-the-path-operation-function-name-as-the-operationid }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/middleware.md

    * It can then do something to that **request** or run any needed code.
    * Then it passes the **request** to be processed by the rest of the application (by some *path operation*).
    * It then takes the **response** generated by the application (by some *path operation*).
    * It can do something to that **response** or run any needed code.
    * Then it returns the **response**.
    
    /// note | Technical Details
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_custom_response/test_tutorial002_tutorial003_tutorial004.py

    def get_client(mod_name: str) -> TestClient:
        mod = importlib.import_module(f"docs_src.custom_response.{mod_name}")
        return TestClient(mod.app)
    
    
    html_contents = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
    
    
    def test_get_custom_response(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  6. .ci/dockerOnLinuxExclusions

    # This file specifies the Linux OS versions on which we can't build and
    # test Docker images for some reason. These values correspond to ID and
    # VERSION_ID from /etc/os-release, and a matching value will cause the
    # Docker tests to be skipped on that OS. If /etc/os-release doesn't exist
    # (as is the case on centos-6, for example) then that OS will again be
    # excluded.
    debian-8
    opensuse-leap-15.1
    ol-7.7
    sles-12.3 # older version used in Vagrant image
    sles-12.5
    Registered: Sun Dec 21 06:47:06 UTC 2025
    - Last Modified: Thu Jul 29 23:07:12 UTC 2021
    - 615 bytes
    - Viewed (0)
  7. docs_src/response_cookies/tutorial002_py39.py

    app = FastAPI()
    
    
    @app.post("/cookie-and-object/")
    def create_cookie(response: Response):
        response.set_cookie(key="fakesession", value="fake-cookie-session-value")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 272 bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblem.java

         * is given by {@link #getSource()}.
         *
         * @return The one-based index of the line containing the problem or a non-positive value if unknown.
         */
        int getLineNumber();
    
        /**
         * Gets the one-based index of the column containing the problem. The column number should refer to some text file
         * that is given by {@link #getSource()}.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 4K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/async-tests.md

    ## HTTPX { #httpx }
    
    Even if your **FastAPI** application uses normal `def` functions instead of `async def`, it is still an `async` application underneath.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. fastapi/datastructures.py

                bytes,
                Doc(
                    """
                    The bytes to write to the file.
                    """
                ),
            ],
        ) -> None:
            """
            Write some bytes to the file.
    
            You normally wouldn't use this from a file you read in a request.
    
            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().write(data)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top