Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for differently (0.17 sec)

  1. docs/en/docs/how-to/custom-request-and-route.md

    The only thing the function returned by `GzipRequest.get_route_handler` does differently is convert the `Request` to a `GzipRequest`.
    
    Doing this, our `GzipRequest` will take care of decompressing the data (if necessary) before passing it to our *path operations*.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/index.md

        ```Python hl_lines="15  20"
        {!> ../../../docs_src/dependencies/tutorial001.py!}
        ```
    
    Although you use `Depends` in the parameters of your function the same way you use `Body`, `Query`, etc, `Depends` works a bit differently.
    
    You only give `Depends` a single parameter.
    
    This parameter must be something like a function.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/static-files.md

    ### What is "Mounting"
    
    "Mounting" means adding a complete "independent" application in a specific path, that then takes care of handling all the sub-paths.
    
    This is different from using an `APIRouter` as a mounted application is completely independent. The OpenAPI and docs from your main application won't include anything from the mounted application, etc.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 19:56:09 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/index.md

    # How To - Recipes
    
    Here you will see different recipes or "how to" guides for **several topics**.
    
    Most of these ideas would be more or less **independent**, and in most cases you should only need to study them if they apply directly to **your project**.
    
    If something seems interesting and useful to your project, go ahead and check it, but otherwise, you might probably just skip them.
    
    !!! tip
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 591 bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/response-model.md

    ### `response_model` or Return Type
    
    In this case, because the two models are different, if we annotated the function return type as `UserOut`, the editor and tools would complain that we are returning an invalid type, as those are different classes.
    
    That's why in this example we have to declare it in the `response_model` parameter.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/testing.md

    ## Separating tests
    
    In a real application, you probably would have your tests in a different file.
    
    And your **FastAPI** application might also be composed of several files/modules, etc.
    
    ### **FastAPI** app file
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. docs/en/docs/benchmarks.md

    But when checking benchmarks and comparisons you should keep the following in mind.
    
    ## Benchmarks and speed
    
    When you check the benchmarks, it is common to see several tools of different types compared as equivalent.
    
    Specifically, to see Uvicorn, Starlette and FastAPI compared together (among many other tools).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/get-current-user.md

        Here **FastAPI** won't get confused because you are using `Depends`.
    
    !!! check
        The way this dependency system is designed allows us to have different dependencies (different "dependables") that all return a `User` model.
    
        We are not restricted to having only one dependency that can return that type of data.
    
    ## Other models
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  9. docs/en/docs/deployment/versions.md

    ## About Starlette
    
    You shouldn't pin the version of `starlette`.
    
    Different versions of **FastAPI** will use a specific newer version of Starlette.
    
    So, you can just let **FastAPI** use the correct Starlette version.
    
    ## About Pydantic
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Nov 05 20:50:37 GMT 2020
    - 3.3K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/generate-clients.md

    One particular advantage that is not necessarily obvious is that you can **generate clients** (sometimes called <abbr title="Software Development Kits">**SDKs**</abbr> ) for your API, for many different **programming languages**.
    
    ## OpenAPI Client Generators
    
    There are many tools to generate clients from **OpenAPI**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top