- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 1,924 for Responses (0.05 seconds)
-
docs/zh-hant/docs/advanced/path-operation-advanced-configuration.md
{* ../../docs_src/path_operation_advanced_configuration/tutorial004_py310.py hl[17:27] *} ## 額外回應 { #additional-responses } 你大概已看過如何為*路徑操作*宣告 `response_model` 與 `status_code`。 這會定義該*路徑操作*主要回應的中繼資料。 你也可以宣告額外的回應及其模型、狀態碼等。 文件中有完整章節說明,請見 [OpenAPI 中的額外回應](additional-responses.md)。 ## OpenAPI 額外資訊 { #openapi-extra } 當你在應用程式中宣告一個*路徑操作*時,FastAPI 會自動產生該*路徑操作*的相關中繼資料,並納入 OpenAPI 結構中。 /// note | 技術細節Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 6.5K bytes - Click Count (0) -
tests/test_security_api_key_query_optional.py
client = TestClient(app) def test_security_api_key(): response = client.get("/users/me?key=secret") assert response.status_code == 200, response.text assert response.json() == {"username": "secret"} def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 200, response.text assert response.json() == {"msg": "Create an account first"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/NotifyResponse.java
*/ package jcifs.internal; import java.util.List; import jcifs.FileNotifyInformation; /** * Interface for SMB change notification response messages. * Handles responses from directory change notification requests, providing information * about file system changes such as file creation, deletion, or modification events. * * @author mbechler */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt
* * Both this class and [Response] implement [Closeable]. Closing a response simply * closes its response body. If you invoke [Call.execute] or implement [Callback.onResponse] you * must close this body by calling any of the following methods: * * * `Response.close()` * * `Response.body().close()` * * `Response.body().source().close()` * * `Response.body().charStream().close()` * * `Response.body().byteStream().close()`
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue May 27 14:51:25 GMT 2025 - 11.6K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer.py
client = TestClient(app) def test_no_token(): response = client.get("/items") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} def test_incorrect_token(): response = client.get("/items", headers={"Authorization": "Non-existent testtoken"}) assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.7K bytes - Click Count (0) -
tests/test_security_api_key_cookie_optional.py
client = TestClient(app, cookies={"key": "secret"}) response = client.get("/users/me") assert response.status_code == 200, response.text assert response.json() == {"username": "secret"} def test_security_api_key_no_key(): client = TestClient(app) response = client.get("/users/me") assert response.status_code == 200, response.text assert response.json() == {"msg": "Create an account first"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.2K bytes - Click Count (0) -
fastapi/__init__.py
from .param_functions import Path as Path from .param_functions import Query as Query from .param_functions import Security as Security from .requests import Request as Request from .responses import Response as Response from .routing import APIRouter as APIRouter from .websockets import WebSocket as WebSocket
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 01 16:21:01 GMT 2026 - 1.1K bytes - Click Count (0) -
src/main/java/jcifs/util/transport/Response.java
*/ package jcifs.util.transport; /** * Interface for transport response messages. * This interface represents responses received from network transports. */ public interface Response extends Message { /** * Checks if the response has been received. * * @return whether the response is received */ boolean isReceived(); /** * Set received statusCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.2K bytes - Click Count (0) -
tests/test_security_openid_connect_optional.py
def test_security_oauth2_password_bearer_no_header(): response = client.get("/users/me") assert response.status_code == 200, response.text assert response.json() == {"msg": "Create an account first"} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == snapshot( { "openapi": "3.1.0",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.6K bytes - Click Count (0) -
okhttp-zstd/README.md
OkHttp Zstandard (zstd) Integration =================================== This module enables [Zstandard (zstd)][1] response compression in addition to Gzip, as long as the `Accept-Encoding` header is not otherwise set. Web servers must be configured to return zstd responses. Note that zstd is not used for sending requests. ```java OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(CompressionInterceptor(Zstd, Gzip)) .build();
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 05:41:23 GMT 2026 - 566 bytes - Click Count (1)