- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 75 for Multipart (0.18 sec)
-
okhttp/src/test/java/okhttp3/MultipartBodyTest.kt
multipart.addPart( headersOf("Content-Type", "text/plain"), "Hello, World!".toRequestBody(null), ) } } @Test fun contentLengthHeaderIsForbidden() { val multipart = MultipartBody.Builder() assertFailsWith<IllegalArgumentException> { multipart.addPart( headersOf("Content-Length", "13"), "Hello, World!".toRequestBody(null), ) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MultipartReaderTest.kt
} @Test fun `parse from response body`() { val multipart = """ |--simple boundary | |abcd |--simple boundary-- """.trimMargin() .replace("\n", "\r\n") val responseBody = multipart.toResponseBody( "application/multipart; boundary=\"simple boundary\"".toMediaType(), )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.8K bytes - Viewed (0) -
docs/ko/docs/tutorial/request-forms-and-files.md
# 폼 및 파일 요청 `File` 과 `Form` 을 사용하여 파일과 폼을 함께 정의할 수 있습니다. !!! info "정보" 파일과 폼 데이터를 함께, 또는 각각 업로드하기 위해 먼저 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>를 설치해야합니다. 예 ) `pip install python-multipart`. ## `File` 및 `Form` 업로드 ```Python hl_lines="1" {!../../../docs_src/request_forms_and_files/tutorial001.py!} ``` ## `File` 및 `Form` 매개변수 정의
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 1.5K bytes - Viewed (0) -
docs/de/docs/tutorial/request-forms-and-files.md
!!! info Um hochgeladene Dateien und/oder Formulardaten zu empfangen, installieren Sie zuerst <a href="https://andrew-d.github.io/python-multipart/" class="external-link" target="_blank">`python-multipart`</a>. Z. B. `pip install python-multipart`. ## `File` und `Form` importieren === "Python 3.9+" ```Python hl_lines="3" {!> ../../../docs_src/request_forms_and_files/tutorial001_an_py39.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:07:35 GMT 2024 - 2.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartBody.kt
*/ @JvmField val MIXED = "multipart/mixed".toMediaType() /** * The "multipart/alternative" type is syntactically identical to "multipart/mixed", but the * semantics are different. In particular, each of the body parts is an "alternative" version of * the same information. */ @JvmField val ALTERNATIVE = "multipart/alternative".toMediaType() /**
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.9K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-forms-and-files.md
# 请求表单与文件 FastAPI 支持同时使用 `File` 和 `Form` 定义文件和表单字段。 !!! info "说明" 接收上传文件或表单数据,要预先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>。 例如,`pip install python-multipart`。 ## 导入 `File` 与 `Form` ```Python hl_lines="1" {!../../../docs_src/request_forms_and_files/tutorial001.py!} ``` ## 定义 `File` 与 `Form` 参数 创建文件和表单参数的方式与 `Body` 和 `Query` 一样:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 1.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/request-forms-and-files.md
!!! info "Дополнительная информация" Чтобы получать загруженные файлы и/или данные форм, сначала установите <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Например: `pip install python-multipart`. ## Импортируйте `File` и `Form` === "Python 3.9+" ```Python hl_lines="3" {!> ../../../docs_src/request_forms_and_files/tutorial001_an_py39.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 2.9K bytes - Viewed (0) -
docs/en/docs/tutorial/request-forms.md
# Form Data When you need to receive form fields instead of JSON, you can use `Form`. !!! info To use forms, first install <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. E.g. `pip install python-multipart`. ## Import `Form` Import `Form` from `fastapi`: === "Python 3.9+" ```Python hl_lines="3"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 3.2K bytes - Viewed (0) -
docs/de/docs/tutorial/request-forms.md
!!! info Um Formulare zu verwenden, installieren Sie zuerst <a href="https://andrew-d.github.io/python-multipart/" class="external-link" target="_blank">`python-multipart`</a>. Z. B. `pip install python-multipart`. ## `Form` importieren Importieren Sie `Form` von `fastapi`: === "Python 3.9+" ```Python hl_lines="3"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:06:54 GMT 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartReader.kt
import okio.Buffer import okio.BufferedSource import okio.ByteString.Companion.encodeUtf8 import okio.Options import okio.Source import okio.Timeout import okio.buffer /** * Reads a stream of [RFC 2046][rfc_2046] multipart body parts. Callers read parts one-at-a-time * until [nextPart] returns null. After calling [nextPart] any preceding parts should not be read. * * Typical use loops over the parts in sequence: * * ```kotlin
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.1K bytes - Viewed (0)