Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for receive (0.13 sec)

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

    A `Request` also has a `request.receive`, that's a function to "receive" the body of the request.
    
    The `scope` `dict` and `receive` function are both part of the ASGI specification.
    
    And those two things, `scope` and `receive`, are what is needed to create a new `Request` instance.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 22:39:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/encoder.md

    Let's imagine that you have a database `fake_db` that only receives JSON compatible data.
    
    For example, it doesn't receive `datetime` objects, as those are not compatible with JSON.
    
    So, a `datetime` object would have to be converted to a `str` containing the data in <a href="https://en.wikipedia.org/wiki/ISO_8601" class="external-link" target="_blank">ISO format</a>.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 23:31:16 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. docs/pt/docs/how-to/custom-request-and-route.md

    ```
    
    /// note | Detalhes Técnicos
    
    Um `Request` também tem um `request.receive`, que é uma função para "receber" o corpo da requisição.
    
    Um `Request` também tem um `request.receive`, que é uma função para "receber" o corpo da requisição.
    
    O dicionário `scope` e a função `receive` são ambos parte da especificação ASGI.
    
    E essas duas coisas, `scope` e `receive`, são o que é necessário para criar uma nova instância de `Request`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 17:33:00 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/openapi-webhooks.md

    This can make it a lot easier for your users to **implement their APIs** to receive your **webhook** requests, they might even be able to autogenerate some of their own API code.
    
    /// info
    
    Webhooks are available in OpenAPI 3.1.0 and above, supported by FastAPI `0.99.0` and above.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:38:23 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/background-tasks.md

    * Processing data:
        * For example, let's say you receive a file that must go through a slow process, you can return a response of "Accepted" (HTTP 202) and process the file in the background.
    
    ## Using `BackgroundTasks`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:22:48 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/response-status-code.md

    ///
    
    The `status_code` parameter receives a number with the HTTP status code.
    
    /// info
    
    `status_code` can alternatively also receive an `IntEnum`, such as Python's <a href="https://docs.python.org/3/library/http.html#http.HTTPStatus" class="external-link" target="_blank">`http.HTTPStatus`</a>.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:13:18 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/middleware.md

    A middleware doesn't have to be made for FastAPI or Starlette to work, as long as it follows the ASGI spec.
    
    In general, ASGI middlewares are classes that expect to receive an ASGI app as the first argument.
    
    So, in the documentation for third-party ASGI middlewares they will probably tell you to do something like:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:45:50 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/oauth2-jwt.md

    ```Python hl_lines="4 7  13-15  29-31  79-87"
    {!> ../../docs_src/security/tutorial004.py!}
    ```
    
    ////
    
    ## Update the dependencies
    
    Update `get_current_user` to receive the same token as before, but this time, using JWT tokens.
    
    Decode the received token, verify it, and return the current user.
    
    If the token is invalid, return an HTTP error right away.
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="90-107"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:45:10 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/SimplexTransferListener.java

         *
         * @param delegate The delegate that should run on single thread.
         * @param queueSize The event queue size (default {@code 1024}).
         * @param batchMaxSize The maximum batch size delegate should receive (default {@code 500}).
         * @param blockOnLastEvent Should this listener block on last transfer end (completed or corrupted) block? (default {@code true}).
         */
        public SimplexTransferListener(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/security/http-basic-auth.md

    # HTTP Basic Auth
    
    For the simplest cases, you can use HTTP Basic Auth.
    
    In HTTP Basic Auth, the application expects a header that contains a username and a password.
    
    If it doesn't receive it, it returns an HTTP 401 "Unauthorized" error.
    
    And returns a header `WWW-Authenticate` with a value of `Basic`, and an optional `realm` parameter.
    
    That tells the browser to show the integrated prompt for a username and password.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 16:01:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top