- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 298 for sena (0.02 seconds)
-
fastapi/security/api_key.py
with the API key and integrates that into the OpenAPI documentation. It extracts the key value sent in the query parameter automatically and provides it as the dependency result. But it doesn't define how to send that API key to the client. ## Usage Create an instance object and use that object as the dependency in `Depends()`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 9.6K bytes - Click Count (1) -
src/main/java/org/codelibs/curl/Curl.java
*/ protected Curl() { // nothing } /** * Creates a new CurlRequest with the HTTP GET method for the specified URL. * * @param url the URL to send the GET request to * @return a CurlRequest object configured with the GET method and the specified URL */ public static CurlRequest get(final String url) { return new CurlRequest(Method.GET, url); }Created: Sat Dec 20 09:13:53 GMT 2025 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 5.9K bytes - Click Count (0) -
docs/pt/docs/tutorial/extra-models.md
# Modelos Adicionais { #extra-models } Continuando com o exemplo anterior, será comum ter mais de um modelo relacionado. Isso é especialmente o caso para modelos de usuários, porque: * O **modelo de entrada** precisa ser capaz de ter uma senha. * O **modelo de saída** não deve ter uma senha. * O **modelo de banco de dados** provavelmente precisaria ter uma senha com hash. /// danger | CuidadoCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 7.5K bytes - Click Count (0) -
internal/logger/target/http/http.go
// Even if there is nothing in the queue. if h.batchSize > 1 && time.Since(lastBatchProcess) < time.Second { continue } } // if we have reached the count send at once // or we have crossed last second before batch was sent, send at once lastBatchProcess = time.Now() var retries int retryIntvl := h.config.RetryIntvl if retryIntvl <= 0 { retryIntvl = 3 * time.Second }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15.6K bytes - Click Count (0) -
tests/test_tutorial/test_background_tasks/test_tutorial001.py
def test(): log = Path("log.txt") if log.is_file(): os.remove(log) # pragma: no cover response = client.post("/send-notification/******@****.***") assert response.status_code == 200, response.text assert response.json() == {"message": "Notification sent in the background"} with open("./log.txt") as f:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 583 bytes - Click Count (0) -
docs_src/background_tasks/tutorial002_py39.py
background_tasks.add_task(write_log, message) return q @app.post("/send-notification/{email}") async def send_notification( email: str, background_tasks: BackgroundTasks, q: str = Depends(get_query) ): message = f"message to {email}\n" background_tasks.add_task(write_log, message)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 675 bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
server.send(message3) clientListener.assertTextMessage(message3) // Empty client to server message. val message4 = "" client.send(message4) serverListener.assertTextMessage(message4) // Server to client message that shares context with message1. val message5 = message1 + message1 server.send(message5) clientListener.assertTextMessage(message5)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 35.5K bytes - Click Count (0) -
docs/pt/docs/advanced/custom-response.md
{* ../../docs_src/custom_response/tutorial002_py39.py hl[2,7] *} /// info | Informação O parâmetro `response_class` também será usado para definir o "media type" da resposta. Neste caso, o cabeçalho HTTP `Content-Type` será definido como `text/html`. E será documentado como tal no OpenAPI. /// ### Retornando uma `Response` { #return-a-response }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 13.8K bytes - Click Count (0) -
docs_src/background_tasks/tutorial001_py39.py
content = f"notification for {email}: {message}" email_file.write(content) @app.post("/send-notification/{email}") async def send_notification(email: str, background_tasks: BackgroundTasks): background_tasks.add_task(write_notification, email, message="some notification")Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 519 bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
exchange.finishRequest() } } catch (e: IOException) { if (e is ConnectionShutdownException) { throw e // No request was sent so there's no response to read. } if (!exchange.hasFailure) { throw e // Don't attempt to read the response; we failed to send the request. } sendRequestException = e } try { if (responseBuilder == null) {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Oct 30 13:46:58 GMT 2025 - 7.6K bytes - Click Count (0)