- Sort Score
- Result 10 results
- Languages All
Results 991 - 1000 of 1,364 for header2 (0.04 sec)
-
docs/zh/docs/advanced/custom-response.md
/// ### `Response` 其他全部的响应都继承自主类 `Response`。 你可以直接返回它。 `Response` 类接受如下参数: * `content` - 一个 `str` 或者 `bytes`。 * `status_code` - 一个 `int` 类型的 HTTP 状态码。 * `headers` - 一个由字符串组成的 `dict`。 * `media_type` - 一个给出媒体类型的 `str`,比如 `"text/html"`。 FastAPI(实际上是 Starlette)将自动包含 Content-Length 的头。它还将包含一个基于 media_type 的 Content-Type 头,并为文本类型附加一个字符集。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 7.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt
val request = Builder().url(url).build() client .newCall(request) .execute() .use { response -> if (!response.isSuccessful) { val responseHeaders = response.headers for (i in 0 until responseHeaders.size) { println(responseHeaders.name(i) + ": " + responseHeaders.value(i)) } throw IOException("Unexpected code $response") }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.8K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.2.md
* As part of preparation in 1.2 for adding support for protocol buffers (and the direct YAML support in the API available today), the Content-Type and Accept headers are now properly handled as per the HTTP spec. As a consequence, if you had a client that was sending an invalid Content-Type or Accept header to the API, in 1.2 you will either receive a 415 or 406 error. The only client this is known to affect is curl when you use -d with JSON but don't set a
Registered: Fri Dec 26 09:05:12 UTC 2025 - Last Modified: Fri Dec 04 06:36:19 UTC 2020 - 41.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/BaseApiManager.java
out.print(text); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * Writes custom headers to the HTTP response. * @param response The HTTP servlet response. */ protected abstract void writeHeaders(final HttpServletResponse response);
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java
} @Test @DisplayName("Test context size calculation") public void testContextSize() { int expectedSize = 8 + (3 * 2); // Header + 3 algorithms * 2 bytes each assertEquals(expectedSize, context.size()); } @Test @DisplayName("Test context with flags") public void testContextWithFlags() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.6K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
assertEquals(setOf(OkHttpTest::class.java.name), testHandler.calls.keys) } fun testCachedRequest() { enableTls() server.enqueue(MockResponse(body = "abc", headers = Headers.headersOf("cache-control", "public, max-age=3"))) server.enqueue(MockResponse(body = "abc")) val ctxt = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 29.9K bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py
) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module( f"docs_src.path_operation_advanced_configuration.{request.param}" ) client = TestClient(mod.app) client.headers.clear() return client def test_query_params_str_validations(client: TestClient): response = client.post("/items/", json={"name": "Foo", "price": 42}) assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbTransport.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.8K bytes - Viewed (0) -
src/main/resources/fess_message_de.properties
# ======================================================================================== # Framework Default # ================= # ---------------------------------------------------------- # Lasta Taglib # ------------ errors.header = <ul class="has-error"> errors.footer = </ul> errors.prefix = <li><i class="fa fa-exclamation-circle"></i> errors.suffix = </li> # ---------------------------------------------------------- # Javax Validator
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Jul 05 02:36:47 UTC 2025 - 12.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/cookie-param-models.md
/// note | Заметка Этот функционал доступен с версии `0.115.0`. 🤓 /// /// tip | Совет Такой же подход применяется для `Query`, `Cookie`, и `Header`. 😎 /// ## Pydantic-модель для cookies { #cookies-with-a-pydantic-model } Объявите параметры **cookie**, которые вам нужны, в **Pydantic-модели**, а затем объявите параметр как `Cookie`:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Dec 11 21:25:03 UTC 2025 - 5K bytes - Viewed (0)