- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 544 for sends (0.03 sec)
-
docs_src/background_tasks/tutorial002_an.py
def get_query(background_tasks: BackgroundTasks, q: Union[str, None] = None): if q: message = f"found query: {q}\n" background_tasks.add_task(write_log, message) return q @app.post("/send-notification/{email}") async def send_notification( email: str, background_tasks: BackgroundTasks, q: Annotated[str, Depends(get_query)] ): message = f"message to {email}\n"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 725 bytes - Viewed (0) -
docs/pt/docs/advanced/using-request-directly.md
Para isso você precisa acessar a requisição diretamente. ```Python hl_lines="1 7-8" {!../../docs_src/using_request_directly/tutorial001.py!} ``` Ao declarar o parâmetro com o tipo sendo um `Request` em sua *função de operação de rota*, o **FastAPI** saberá como passar o `Request` neste parâmetro. /// tip | "Dica" Note que neste caso, nós estamos declarando o parâmetro da rota ao lado do parâmetro da requisição.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.5K bytes - Viewed (0) -
docs_src/background_tasks/tutorial002_an_py310.py
def get_query(background_tasks: BackgroundTasks, q: str | None = None): if q: message = f"found query: {q}\n" background_tasks.add_task(write_log, message) return q @app.post("/send-notification/{email}") async def send_notification( email: str, background_tasks: BackgroundTasks, q: Annotated[str, Depends(get_query)] ): message = f"message to {email}\n"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 683 bytes - Viewed (0) -
fastapi/security/oauth2.py
The only difference between `OAuth2PasswordRequestFormStrict` and `OAuth2PasswordRequestForm` is that `OAuth2PasswordRequestFormStrict` requires the client to send the form field `grant_type` with the value `"password"`, which is required in the OAuth2 specification (it seems that for no particular reason), while for `OAuth2PasswordRequestForm` `grant_type` is optional.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 23 18:30:18 UTC 2024 - 21.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
reqx.writeMode = 0; } file.send( reqx, rspx ); fp += rspx.count; len -= rspx.count; off += rspx.count; } else { req.setParam( file.fid, fp, len - w, b, off, w ); fp += rsp.count; len -= rsp.count; off += rsp.count; file.send( req, rsp ); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 9.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
Smb2IoctlResponse resp = th.send(req, RequestParam.NO_RETRY); return ((SrvPipePeekResponse)resp.getOutputData()).getReadDataAvailable(); } TransPeekNamedPipe req = new TransPeekNamedPipe(th.getConfig(), this.handle.getUncPath(), fd.getFid()); TransPeekNamedPipeResponse resp = new TransPeekNamedPipeResponse(th.getConfig()); th.send(req, resp, RequestParam.NO_RETRY);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Aug 05 07:12:23 UTC 2018 - 3.5K bytes - Viewed (0) -
docs/en/docs/tutorial/request-form-models.md
/// ```Python hl_lines="10" {!> ../../docs_src/request_form_models/tutorial002.py!} ``` //// If a client tries to send some extra data, they will receive an **error** response. For example, if the client tries to send the form fields: * `username`: `Rick` * `password`: `Portal Gun` * `extra`: `Mr. Poopybutthole`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.8K bytes - Viewed (0) -
internal/logger/help.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 11 22:20:42 UTC 2024 - 7.4K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.15.md
* For admission webhooks registered for DELETE operations on k8s built APIs or CRDs, the apiserver now sends the existing object as admissionRequest.Request.OldObject to the webhook. ([#76346](https://github.com/kubernetes/kubernetes/pull/76346), [@caesarxuchao](https://github.com/caesarxuchao))
Registered: Fri Nov 01 09:05:11 UTC 2024 - Last Modified: Thu May 05 13:44:43 UTC 2022 - 278.9K bytes - Viewed (0) -
docs/pt/docs/advanced/events.md
Do mesmo modo, você pode definir a lógica (código) que será executada quando a aplicação estiver sendo **encerrada**. Nesse caso, este código será executado **uma vez**, **depois** de ter possivelmente tratado **várias requisições**.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.6K bytes - Viewed (0)