- Sort Score
- Result 10 results
- Languages All
Results 481 - 490 of 1,541 for bytes (0.02 sec)
-
docs/de/docs/advanced/custom-response.md
```Python hl_lines="1 18" {!../../docs_src/response_directly/tutorial002.py!} ``` ### `HTMLResponse` Nimmt Text oder Bytes entgegen und gibt eine HTML-Response zurück, wie Sie oben gelesen haben. ### `PlainTextResponse` Nimmt Text oder Bytes entgegen und gibt eine Plain-Text-Response zurück. ```Python hl_lines="2 7 9" {!../../docs_src/custom_response/tutorial005.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt
@Test fun validateCompactTableInvariants() { // Less than 16,834 bytes, because we binary search on a 14-bit index. assertThat(compactTable.sections.length).isLessThan(1 shl 14) // Less than 65,536 bytes, because we binary search on a 14-bit index with a stride of 4 bytes. assertThat(compactTable.ranges.length).isLessThan((1 shl 14) * 4)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.9K bytes - Viewed (0) -
internal/grid/grid_test.go
// 1: Echo errFatal(local.RegisterSingleHandler(handlerTest, func(payload []byte) ([]byte, *RemoteErr) { t.Log("1: server payload: ", len(payload), "bytes.") return append([]byte{}, payload...), nil })) // 2: Return as error errFatal(local.RegisterSingleHandler(handlerTest2, func(payload []byte) ([]byte, *RemoteErr) { t.Log("2: server payload: ", len(payload), "bytes.") err := RemoteErr(payload) return nil, &err }))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 36.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
return trailers ?: EMPTY_HEADERS } override fun flushRequest() { sink.flush() } override fun finishRequest() { sink.flush() } /** Returns bytes of a request header for sending on an HTTP transport. */ fun writeRequest( headers: Headers, requestLine: String, ) { check(state == STATE_IDLE) { "state: $state" }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.2K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponseBody.kt
* * Unlike [okhttp3.ResponseBody], this interface is designed to be implemented by writers and not * called by readers. */ @ExperimentalOkHttpApi interface MockResponseBody { /** The length of this response in bytes, or -1 if unknown. */ val contentLength: Long @Throws(IOException::class) fun writeTo(sink: BufferedSink)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 1.1K bytes - Viewed (0) -
docs/ko/docs/tutorial/extra-data-types.md
* `frozenset`: * 요청과 응답에서 `set`와 동일하게 취급됩니다: * 요청 시, 리스트를 읽어 중복을 제거하고 `set`로 변환합니다. * 응답 시, `set`는 `list`로 변환됩니다. * 생성된 스키마는 (JSON 스키마의 `uniqueItems`를 이용해) `set`의 값이 고유함을 명시합니다. * `bytes`: * 표준 파이썬의 `bytes`. * 요청과 응답에서 `str`로 취급됩니다. * 생성된 스키마는 이것이 `binary` "형식"의 `str`임을 명시합니다. * `Decimal`: * 표준 파이썬의 `Decimal`. * 요청과 응답에서 `float`와 동일하게 다뤄집니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt
@Throws(IOException::class) fun flushRequest() /** Flush the request to the underlying socket and signal no more bytes will be transmitted. */ @Throws(IOException::class) fun finishRequest() /** * Parses bytes of a response header from an HTTP transport. * * @param expectContinue true to return null if this is an intermediate response with a "100"
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3K bytes - Viewed (0) -
internal/hash/sha256/sh256.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 26 06:31:35 UTC 2024 - 1.1K bytes - Viewed (0) -
docs_src/request_files/tutorial002.py
from typing import List from fastapi import FastAPI, File, UploadFile from fastapi.responses import HTMLResponse app = FastAPI() @app.post("/files/") async def create_files(files: List[bytes] = File()): return {"file_sizes": [len(file) for file in files]} @app.post("/uploadfiles/") async def create_upload_files(files: List[UploadFile]): return {"filenames": [file.filename for file in files]} @app.get("/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 811 bytes - Viewed (0) -
docs_src/request_files/tutorial002_an_py39.py
from typing import Annotated from fastapi import FastAPI, File, UploadFile from fastapi.responses import HTMLResponse app = FastAPI() @app.post("/files/") async def create_files(files: Annotated[list[bytes], File()]): return {"file_sizes": [len(file) for file in files]} @app.post("/uploadfiles/") async def create_upload_files(files: list[UploadFile]): return {"filenames": [file.filename for file in files]}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 826 bytes - Viewed (0)