Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 194 for Make (0.16 sec)

  1. tests/test_ws_router.py

    async def router_ws_custom_error(websocket: WebSocket):
        raise CustomError()
    
    
    def make_app(app=None, **kwargs):
        app = app or FastAPI(**kwargs)
        app.include_router(router)
        app.include_router(prefix_router, prefix="/prefix")
        app.include_router(native_prefix_route)
        return app
    
    
    app = make_app(app)
    
    
    def test_app():
        client = TestClient(app)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  2. docs/en/docs/deployment/concepts.md

    I'll give you more concrete examples in the next chapters.
    
    ## Restarts
    
    Similar to making sure your application is run on startup, you probably also want to make sure it is **restarted** after failures.
    
    ### We Make Mistakes
    
    We, as humans, make **mistakes**, all the time. Software almost *always* has **bugs** hidden in different places. 🐛
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/custom-request-and-route.md

    * Decompressing gzip-compressed request bodies.
    * Automatically logging all request bodies.
    
    ## Handling custom request body encodings
    
    Let's see how to make use of a custom `Request` subclass to decompress gzip requests.
    
    And an `APIRoute` subclass to use that custom request class.
    
    ### Create a custom `GzipRequest` class
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/conditional-openapi.md

    If you want to secure your API, there are several better things you can do, for example:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  5. docs/en/docs/css/custom.css

      direction: ltr;
      display: inline-block;
    }
    
    a.external-link::after {
      /* \00A0 is a non-breaking space
            to make the mark be on the same line as the link
        */
      content: "\00A0[↪]";
    }
    
    a.internal-link::after {
      /* \00A0 is a non-breaking space
            to make the mark be on the same line as the link
        */
      content: "\00A0↪";
    }
    
    .shadow {
      box-shadow: 5px 5px 10px #999;
    }
    
    CSS
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jan 28 09:53:45 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/security/oauth2-jwt.md

        ```Python hl_lines="7  48  55-56  59-60  69-75"
        {!> ../../../docs_src/security/tutorial004.py!}
        ```
    
    !!! note
        If you check the new (fake) database `fake_users_db`, you will see how the hashed password looks like now: `"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`.
    
    ## Handle JWT tokens
    
    Import the modules installed.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  7. docs/en/docs/deployment/versions.md

    After you have tests, then you can upgrade the **FastAPI** version to a more recent one, and make sure that all your code is working correctly by running your tests.
    
    If everything is working, or after you make the necessary changes, and all your tests are passing, then you can pin your `fastapi` to that new recent version.
    
    ## About Starlette
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Nov 05 20:50:37 GMT 2020
    - 3.3K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    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`
    
    You can have sub-dependencies and "trees" of sub-dependencies of any size and shape, and any or all of them can use `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/contributing.md

        <div class="termy">
    
        ```console
        $ Get-Command pip
    
        some/directory/fastapi/env/bin/pip
        ```
    
        </div>
    
    If it shows the `pip` binary at `env/bin/pip` then it worked. 🎉
    
    Make sure you have the latest pip version on your local environment to avoid errors on the next steps:
    
    <div class="termy">
    
    ```console
    $ python -m pip install --upgrade pip
    
    ---> 100%
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 17:42:43 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/generate-clients.md

    But I'll show you how to improve that next. 🤓
    
    ## Custom Operation IDs and Better Method Names
    
    You can **modify** the way these operation IDs are **generated** to make them simpler and have **simpler method names** in the clients.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top