- Sort Score
- Result 10 results
- Languages All
Results 581 - 590 of 1,496 for RESPONSE (0.11 sec)
-
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
call.execute().use { response -> assertThat(response.code).isEqualTo(200) } } @Test fun testRequestExternal() { assumeNetwork() val call = client.newCall(Request("https://google.com/robots.txt".toHttpUrl())) call.execute().use { response -> assertThat(response.code).isEqualTo(200) } } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py39.py
@needs_py39 def test_post_body_example(client: TestClient): response = client.put( "/items/5", json={ "name": "Foo", "description": "A very nice Item", "price": 35.4, "tax": 3.2, }, ) assert response.status_code == 200 @needs_py39 def test_openapi_schema(client: TestClient) -> None: response = client.get("/openapi.json")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 26 18:03:13 UTC 2023 - 6.8K bytes - Viewed (0) -
docs/pt/docs/how-to/general.md
## Filtro de dados- Segurança Para assegurar que você não vai retornar mais dados do que deveria, leia a seção [Tutorial - Response Model - Return Type](../tutorial/response-model.md){.internal-link target=_blank}. ## Tags de Documentação - OpenAPI
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 12 02:41:15 UTC 2024 - 2.4K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/error/redirect.jsp
redirectPage.append("/error/systemerror/"); response.sendRedirect(redirectPage.toString()); } else { response.sendError(statusCode); } } else if("logOut".equals(type)) { redirectPage.append("/login/?type=logout&code=" + statusCode); response.sendRedirect(redirectPage.toString()); } else if("badRequest".equals(type)) { redirectPage.append("/error/badrequest/"); response.sendRedirect(redirectPage.toString());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Dec 23 06:18:48 UTC 2023 - 1.2K bytes - Viewed (0) -
src/main/webapp/WEB-INF/orig/view/error/redirect.jsp
redirectPage.append("/error/systemerror/"); response.sendRedirect(redirectPage.toString()); } else { response.sendError(statusCode); } } else if("logOut".equals(type)) { redirectPage.append("/login/?type=logout&code=" + statusCode); response.sendRedirect(redirectPage.toString()); } else if("badRequest".equals(type)) { redirectPage.append("/error/badrequest/"); response.sendRedirect(redirectPage.toString());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Dec 23 06:18:48 UTC 2023 - 1.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocketChannelTest.kt
} }, ) val response = promise.get(4, SECONDS) assertThat(response).isNotNull() assertThat(response.body.string()).isNotEmpty() if (socketMode is TlsInstance) { assertThat(response.handshake!!.tlsVersion).isEqualTo(socketMode.tlsVersion) assertThat(acceptedHostName).isEqualTo(hostname) if (socketMode.tlsExtensionMode == STANDARD) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8K bytes - Viewed (0) -
tests/test_http_connection_injection.py
await websocket.accept() await websocket.send_json(value) await websocket.close() client = TestClient(app) def test_value_extracting_by_http(): response = client.get("/http") assert response.status_code == 200 assert response.json() == 42 def test_value_extracting_by_ws(): with client.websocket_connect("/ws") as websocket:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Aug 09 13:56:41 UTC 2020 - 972 bytes - Viewed (0) -
tests/test_compat.py
def test_complex(): app = FastAPI() @app.post("/") def foo(foo: Union[str, List[int]]): return foo client = TestClient(app) response = client.post("/", json="bar") assert response.status_code == 200, response.text assert response.json() == "bar" response2 = client.post("/", json=[1, 2]) assert response2.status_code == 200, response2.text assert response2.json() == [1, 2]
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Sep 11 07:45:30 UTC 2024 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/Request.java
* @author mbechler * @param <T> * response type * */ public interface Request <T extends CommonServerMessageBlockResponse> extends CommonServerMessageBlockRequest { /** * * @param tc * @return the initialized response * @internal */ public T initResponse ( CIFSContext tc ); /** * * @return the response message */ @Override
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt
} @Throws(IOException::class) internal fun checkUpgradeSuccess( response: Response, exchange: Exchange?, ) { if (response.code != 101) { throw ProtocolException( "Expected HTTP 101 response but was '${response.code} ${response.message}'", ) } val headerConnection = response.header("Connection") if (!"Upgrade".equals(headerConnection, ignoreCase = true)) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 22.1K bytes - Viewed (0)