- Sort Score
- Result 10 results
- Languages All
Results 301 - 310 of 1,096 for Note (0.06 sec)
-
docs/ko/docs/tutorial/response-model.md
# 응답 모델 어떤 *경로 작동*이든 매개변수 `response_model`를 사용하여 응답을 위한 모델을 선언할 수 있습니다: * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * 기타. {* ../../docs_src/response_model/tutorial001.py hl[17] *} /// note | 참고 `response_model`은 "데코레이터" 메소드(`get`, `post`, 등)의 매개변수입니다. 모든 매개변수들과 본문(body)처럼 *경로 작동 함수*가 아닙니다. /// Pydantic 모델 어트리뷰트를 선언한 것과 동일한 타입을 수신하므로 Pydantic 모델이 될 수 있지만, `List[Item]`과 같이 Pydantic 모델들의 `list`일 수도 있습니다.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 7.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt
import okio.inMemorySocketPair import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Tag import org.junit.jupiter.api.Test @Tag("Slow") class RealWebSocketTest { // NOTE: Fields are named 'client' and 'server' for cognitive simplicity. This differentiation has // zero effect on the behavior of the WebSocket API which is why tests are only written once // from the perspective of a single peer.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.7K bytes - Viewed (0) -
docs/en/docs/tutorial/body-fields.md
You can then use `Field` with model attributes: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[11:14] *} `Field` works the same way as `Query`, `Path` and `Body`, it has all the same parameters, etc. /// note | Technical Details Actually, `Query`, `Path` and others you'll see next create objects of subclasses of a common `Param` class, which is itself a subclass of Pydantic's `FieldInfo` class.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.3K bytes - Viewed (0) -
docs/zh-hant/docs/tutorial/query-param-models.md
# 查詢參數模型 如果你有一組具有相關性的**查詢參數**,你可以建立一個 **Pydantic 模型**來聲明它們。 這將允許你在**多個地方**去**重複使用模型**,並且一次性為所有參數聲明驗證和元資料 (metadata)。😎 /// note FastAPI 從 `0.115.0` 版本開始支援這個特性。🤓 /// ## 使用 Pydantic 模型的查詢參數 在一個 **Pydantic 模型**中聲明你需要的**查詢參數**,然後將參數聲明為 `Query`: {* ../../docs_src/query_param_models/tutorial001_an_py310.py hl[9:13,17] *} **FastAPI** 將會從請求的**查詢參數**中**提取**出**每個欄位**的資料,並將其提供給你定義的 Pydantic 模型。 ## 查看文件
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Wed Nov 27 22:14:10 UTC 2024 - 2K bytes - Viewed (0) -
docs/ko/docs/advanced/additional-status-codes.md
/// warning | 경고 위의 예제처럼 `Response`를 직접 반환하면 바로 반환됩니다. 모델 등과 함께 직렬화되지 않습니다. 원하는 데이터가 있는지, 값이 유효한 JSON인지 확인합니다(`JSONResponse`를 사용하는 경우). /// /// note | 기술적 세부 정보 `from starlette.responses import JSONResponse`를 사용할 수도 있습니다. **FastAPI**는 개발자 여러분을 위한 편의성으로 `fastapi.responses`와 동일한 `starlette.responses`를 제공합니다. 그러나 사용 가능한 응답의 대부분은 Starlette에서 직접 제공됩니다. `status` 또한 마찬가지입니다.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 09 12:22:47 UTC 2024 - 2.1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt
import okio.BufferedSource import okio.ForwardingSink import okio.ForwardingSource import okio.asOkioSocket import okio.buffer /** * Adapts a [java.net.Socket] to MockWebServer's needs. * * Note that [asOkioSocket] returns a socket that closes the underlying [java.net.Socket] when both * of its component streams are closed. This class takes advantage of that. */ internal class MockWebServerSocket(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 3.3K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-data-types.md
## Example { #example } Here's an example *path operation* with parameters using some of the above types. {* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *} Note that the parameters inside the function have their natural data type, and you can, for example, perform normal date manipulations, like:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/header-params.md
Первое значение является значением по умолчанию, вы можете передать все дополнительные параметры валидации или аннотации: {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *} /// note | Технические детали `Header` - это "родственный" класс `Path`, `Query` и `Cookie`. Он также наследуется от того же общего класса `Param`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.9K bytes - Viewed (0) -
docs/ru/docs/tutorial/handling-errors.md
Таким образом, вы получите чистую ошибку с кодом состояния HTTP `418` и содержимым JSON: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` /// note | Технические детали Также можно использовать `from starlette.requests import Request` и `from starlette.responses import JSONResponse`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 14.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Converter.java
* <li>{@code stringConverter().reverse().convert(1.0)} returns the string {@code "1.0"} -- * <i>not</i> the same string ({@code "1.00"}) we started with * </ol> * * <p>Note that it should still be the case that the round-tripped and original objects are * <i>similar</i>. * * <h3>Nullability</h3> *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 18 21:43:06 UTC 2025 - 22.8K bytes - Viewed (0)