- Sort Score
- Num 10 results
- Language All
Results 631 - 640 of 1,967 for respond (0.16 seconds)
-
tests/test_return_none_stringified_annotations.py
@app.get("/no-content", status_code=http.HTTPStatus.NO_CONTENT) def return_no_content() -> "None": return client = TestClient(app) response = client.get("/no-content") assert response.status_code == http.HTTPStatus.NO_CONTENT, response.text
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Sep 20 18:44:43 GMT 2025 - 431 bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/AdminDictKuromojiAction.java
import org.dbflute.optional.OptionalEntity; import org.dbflute.optional.OptionalThing; import org.lastaflute.web.Execute; import org.lastaflute.web.response.ActionResponse; import org.lastaflute.web.response.HtmlResponse; import org.lastaflute.web.response.render.RenderData; import org.lastaflute.web.ruts.process.ActionRuntime; import org.lastaflute.web.validation.VaErrorHook;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 21.5K bytes - Click Count (0) -
docs_src/response_change_status_code/tutorial001_py310.py
from fastapi import FastAPI, Response, status app = FastAPI() tasks = {"foo": "Listen to the Bar Fighters"} @app.put("/get-or-create-task/{task_id}", status_code=200) def get_or_create_task(task_id: str, response: Response): if task_id not in tasks: tasks[task_id] = "This didn't exist before" response.status_code = status.HTTP_201_CREATED
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 391 bytes - Click Count (0) -
tests/test_openapi_model_description_trim_on_formfeed.py
""" @app.get("/foo") def foo(v: MyModel): # pragma: no cover pass client = TestClient(app) def test_openapi(): response = client.get("/openapi.json") assert response.status_code == 200, response.text openapi_schema = response.json() assert openapi_schema["components"]["schemas"]["MyModel"]["description"] == ( "A model with a form feed character in the title.\n"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Jun 17 07:46:27 GMT 2025 - 660 bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/StatusLine.kt
} else { append("HTTP/1.1") } append(' ').append(code) append(' ').append(message) } companion object { fun get(response: Response): StatusLine = StatusLine(response.protocol, response.code, response.message) @Throws(IOException::class) fun parse(statusLine: String): StatusLine { // H T T P / 1 . 1 2 0 0 T e m p o r a r y R e d i r e c tCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.3K bytes - Click Count (0) -
tests/test_dependency_yield_except_httpexception.py
client = TestClient(app) def test_dependency_gets_exception(): assert state["except"] is False assert state["finally"] is False response = client.put("/invalid-user/rick", json="Morty") assert response.status_code == 400, response.text assert response.json() == {"detail": "Invalid user"} assert state["except"] is True assert state["finally"] is True assert fake_database["rick"] == "Rick Sanchez"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 1.9K bytes - Click Count (0) -
cmd/bucket-policy-handlers_test.go
apiRouter.ServeHTTP(recV4, reqV4) // Assert the response code with the expected status. if recV4.Code != testCase.expectedRespStatus { t.Fatalf("Case %d: Expected the response status to be `%d`, but instead found `%d`", i+1, testCase.expectedRespStatus, recV4.Code) } // read the response body. bucketPolicyReadBuf, err := io.ReadAll(recV4.Body) if err != nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/api/chat/ChatApiManagerTest.java
final Map<String, Object> response = chatApiManager.createSuccessResponse("session-123", "Response content", sources); assertEquals("ok", response.get("status")); assertEquals("session-123", response.get("sessionId")); assertEquals("Response content", response.get("content")); assertTrue(response.containsKey("sources")); assertEquals(sources, response.get("sources")); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 14 01:39:16 GMT 2026 - 35K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/CurlResponse.java
* The content cache that stores the response content. */ private ContentCache contentCache; /** * The encoding used for the response content. */ private String encoding; /** * The exception that occurred while accessing the content, if any. */ private Exception contentException; /** * The headers of the response. */Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 6.8K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/AsynchronousGet.java
e.printStackTrace(); } @Override public void onResponse(Call call, Response response) throws IOException { try (ResponseBody responseBody = response.body()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); Headers responseHeaders = response.headers(); for (int i = 0, size = responseHeaders.size(); i < size; i++) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun May 22 01:29:42 GMT 2016 - 1.9K bytes - Click Count (0)