- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 1,924 for Responses (0.3 seconds)
-
tests/test_schema_compat_pydantic_v2.py
client = TestClient(app) return client @needs_py310 def test_get(client: TestClient): response = client.get("/users") assert response.json() == {"username": "alice", "role": "admin"} @needs_py310 def test_openapi_schema(client: TestClient): response = client.get("openapi.json") assert response.json() == snapshot( { "openapi": "3.1.0",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 12:36:49 GMT 2026 - 4.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt
* responses coming back in. Typically interceptors add, remove, or transform headers on the request * or response. * * Implementations of this interface throw [IOException] to signal connectivity failures. This * includes both natural exceptions such as unreachable servers, as well as synthetic exceptions * when responses are of an unexpected type or cannot be decoded. *
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 8.9K bytes - Click Count (0) -
docs_src/bigger_applications/app_an_py310/main.py
app.include_router(users.router) app.include_router(items.router) app.include_router( admin.router, prefix="/admin", tags=["admin"], dependencies=[Depends(get_token_header)], responses={418: {"description": "I'm a teapot"}}, ) @app.get("/") async def root():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 552 bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/LlmStreamCallback.java
*/ package org.codelibs.fess.llm; /** * Callback interface for receiving streaming chat responses from LLM. */ @FunctionalInterface public interface LlmStreamCallback { /** * Called for each chunk of the streaming response. * * @param chunk the text chunk from the LLM response * @param done true if this is the final chunk */ void onChunk(String chunk, boolean done);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Jan 12 10:32:40 GMT 2026 - 1.2K bytes - Click Count (0) -
tests/test_security_http_digest.py
def test_security_http_digest(): response = client.get("/users/me", headers={"Authorization": "Digest foobar"}) assert response.status_code == 200, response.text assert response.json() == {"scheme": "Digest", "credentials": "foobar"} def test_security_http_digest_no_credentials(): response = client.get("/users/me") assert response.status_code == 401, response.text
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.3K bytes - Click Count (0) -
tests/test_security_api_key_query_description.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 == 401, response.text assert response.json() == {"detail": "Not authenticated"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/StorageTests.java
int statusCode = response.getStatusCode(); assertTrue(statusCode == 200 || statusCode == 400 || statusCode == 500, "Status code should be 200, 400 or 500, but was " + statusCode); } @Test void testDownload_notFound() { // Try to download a non-existent file Response response =
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5.3K bytes - Click Count (0) -
README.md
import org.codelibs.curl.CurlResponse; try (CurlResponse response = Curl.get("https://example.com") .param("q", "curl4j") .header("Accept", "application/json") .execute()) { System.out.println("Status: " + response.getHttpStatusCode()); System.out.println(response.getContentAsString()); } ``` ### Asynchronous request
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 2.5K bytes - Click Count (0) -
internal/grid/handlers.go
// when it has been returned on a handler. // This will disable automatic response recycling/pooling. // Typically this is used when the response sharing part of its data structure. func (h *SingleHandler[Req, Resp]) WithSharedResponse() *SingleHandler[Req, Resp] { h.sharedResp = true return h } // NewResponse creates a new response.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 27.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/ApiAdminDictAction.java
.status(ApiResult.Status.OK) .result()); } /** * Creates a ListBody from a DictionaryFile for API responses. * * @param dictionaryFile the dictionary file to convert * @return the converted ListBody object */ protected ListBody createListBody(final DictionaryFile<? extends DictionaryItem> dictionaryFile) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 2.6K bytes - Click Count (0)