- Sort Score
- Num 10 results
- Language All
Results 911 - 920 of 1,943 for Responses (0.13 seconds)
-
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) -
src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java
import org.dbflute.optional.OptionalEntity; import org.lastaflute.core.message.UserMessages; import org.lastaflute.web.login.credential.LoginCredential; import org.lastaflute.web.response.ActionResponse; import org.lastaflute.web.response.HtmlResponse; import org.lastaflute.web.response.StreamResponse; import org.lastaflute.web.util.LaRequestUtil; import org.lastaflute.web.util.LaResponseUtil; import jakarta.annotation.PostConstruct;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 02 03:13:33 GMT 2026 - 20.2K bytes - Click Count (3) -
samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java
.url("https://api.imgur.com/3/image") .post(requestBody) .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } public static void main(String... args) throws Exception { new PostMultipart().run(); }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jun 24 12:59:42 GMT 2019 - 2.2K 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/fess/app/web/admin/crawlinginfo/AdminCrawlinginfoAction.java
import org.codelibs.fess.app.web.base.FessAdminAction; import org.codelibs.fess.helper.ProcessHelper; import org.codelibs.fess.util.RenderDataUtil; import org.lastaflute.web.Execute; import org.lastaflute.web.response.HtmlResponse; import org.lastaflute.web.response.render.RenderData; import org.lastaflute.web.ruts.process.ActionRuntime; import jakarta.annotation.Resource; /** * Admin action for Crawling Info management. * */
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 13:56:35 GMT 2025 - 11K bytes - Click Count (0) -
tests/test_tutorial/test_background_tasks/test_tutorial002.py
@workdir_lock def test(client: TestClient): log = Path("log.txt") if log.is_file(): os.remove(log) # pragma: no cover response = client.post("/send-notification/******@****.***?q=some-query") assert response.status_code == 200, response.text assert response.json() == {"message": "Message sent"} with open("./log.txt") as f:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 10:53:47 GMT 2026 - 968 bytes - Click Count (0) -
tests/test_optional_file_list.py
client = TestClient(app) response = client.post( "/files", files=[("files", b"content1"), ("files", b"content2")], ) assert response.status_code == 200 assert response.json() == {"files_count": 2, "sizes": [8, 8]} def test_optional_bytes_list_no_files(): client = TestClient(app) response = client.post("/files") assert response.status_code == 200
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 789 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) -
docs/pt/docs/how-to/general.md
Para assegurar que você não vai retornar mais dados do que deveria, leia a documentação de [Tutorial - Modelo de Resposta - Tipo de Retorno](../tutorial/response-model.md). ## Otimizar Desempenho da Resposta - Modelo de Resposta - Tipo de Retorno { #optimize-response-performance-response-model-return-type }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 3.2K bytes - Click Count (0) -
okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Aug 01 06:04:22 GMT 2025 - 3K bytes - Click Count (0)