Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Cannon (0.24 sec)

  1. docs/en/docs/benchmarks.md

        * If you are comparing Starlette, compare it against Sanic, Flask, Django, etc. Web frameworks (or microframeworks).
    * **FastAPI**:
        * The same way that Starlette uses Uvicorn and cannot be faster than it, **FastAPI** uses Starlette, so it cannot be faster than it.
    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)
  2. docs/en/docs/tutorial/path-params.md

    {!../../../docs_src/path_params/tutorial003.py!}
    ```
    
    Otherwise, the path for `/users/{user_id}` would match also for `/users/me`, "thinking" that it's receiving a parameter `user_id` with a value of `"me"`.
    
    Similarly, you cannot redefine a path operation:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003b.py!}
    ```
    
    The first one will always be used since the path matches first.
    
    ## Predefined values
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-status-code.md

    These status codes have a name associated to recognize them, but the important part is the number.
    
    In short:
    
    * `100` and above are for "Information". You rarely use them directly.  Responses with these status codes cannot have a body.
    * **`200`** and above are for "Successful" responses. These are the ones you would use the most.
        * `200` is the default status code, which means everything was "OK".
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 4K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/response-directly.md

    ## Using the `jsonable_encoder` in a `Response`
    
    Because **FastAPI** doesn't do any change to a `Response` you return, you have to make sure it's contents are ready for it.
    
    For example, you cannot put a Pydantic model in a `JSONResponse` without first converting it to a `dict` with all the data types (like `datetime`, `UUID`, etc) converted to JSON-compatible types.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 3K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/cors.md

    * `allow_credentials` - Indicate that cookies should be supported for cross-origin requests. Defaults to `False`. Also, `allow_origins` cannot be set to `['*']` for credentials to be allowed, origins must be specified.
    * `expose_headers` - Indicate any response headers that should be made accessible to the browser. Defaults to `[]`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Nov 13 20:28:37 GMT 2022
    - 5.1K bytes
    - Viewed (0)
Back to top