Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 201 - 210 of 1,881 for RESPONSE (0.07 seconds)

  1. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

        // Trigger shutdown of the dispatcher's executor so this process exits immediately.
        client.dispatcher().executorService().shutdown();
      }
    
      @Override public void onOpen(WebSocket webSocket, Response response) {
        webSocket.send("Hello...");
        webSocket.send("...World!");
        webSocket.send(ByteString.decodeHex("deadbeef"));
        webSocket.close(1000, "Goodbye, World!");
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Apr 04 11:40:21 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            response = spy(response);
            when(response.getHeaderStart()).thenReturn(0);
    
            int result = response.readBytesWireFormat(buffer, bufferIndex);
    
            assertEquals(8, result);
            assertNotNull(response.getResults());
            // Even with -1, the do-while loop executes at least once due to the bug
            assertEquals(1, response.getResults().length);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/request/suggest/SuggestRequestBuilderTest.java

            indexItems();
    
            SuggestResponse response = suggester.suggest().setQuery("test").execute().getResponse();
    
            assertNotNull(response);
            assertEquals(1, response.getNum());
        }
    
        @Test
        public void test_setIndex() throws Exception {
            indexItems();
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/TestThread.java

        }
      }
    
      /**
       * Receives a response from this thread.
       *
       * @throws TimeoutException if this thread does not offer a response within a reasonable amount of
       *     time
       * @throws AssertionFailedError if the given method name does not match the name of the method
       *     this thread has called most recently
       */
      private Response getResponse(String methodName) throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt

      @Test fun peekShorterThanResponse() {
        val response = newResponse(responseBody("abcdef"))
        val peekedBody = response.peekBody(3)
        assertThat(peekedBody.string()).isEqualTo("abc")
        assertThat(response.body.string()).isEqualTo("abcdef")
      }
    
      @Test fun peekLongerThanResponse() {
        val response = newResponse(responseBody("abc"))
        val peekedBody = response.peekBody(6)
        assertThat(peekedBody.string()).isEqualTo("abc")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

        private int numEntries;
        private FileEntry[] results;
    
        /**
         * Constructs a transaction response.
         *
         * @param config the configuration to use
         */
        protected SmbComTransactionResponse(final Configuration config) {
            super(config);
        }
    
        /**
         * Constructs a transaction response with specified command.
         *
         * @param config the configuration to use
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/it/admin/JobLogTests.java

            searchBody.put("size", 100);
    
            String response = checkMethodBase(searchBody).get(API_PATH + "/logs").asString();
            List<Map<String, Object>> logs = JsonPath.from(response).getList("response.logs");
    
            logger.info("Job logs: {}", logs);
            assertTrue(logs.size() > 0, "Should have at least one job log");
    
            // Verify response structure
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 21 13:29:45 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerErrorHandlingTest.java

            SuggestItem[] items = new SuggestItem[0];
            SuggestIndexResponse response = suggester.indexer().index(items);
    
            assertNotNull(response);
            assertEquals(0, response.getNumberOfInputDocs());
            assertEquals(0, response.getNumberOfSuggestDocs());
            assertFalse(response.hasError());
        }
    
        @Test
        public void test_indexFromEmptyQueryLogs() throws Exception {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

            },
        }
    
    
    def test_put_only_required(client: TestClient):
        response = client.put(
            "/items/5",
            json={"name": "Foo", "price": 35.4},
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "item_id": 5,
            "item": {
                "name": "Foo",
                "description": None,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/it/admin/AccessTokenTests.java

            String response = checkPostMethod(requestBody, ITEM_ENDPOINT_SUFFIX).asString();
    
            // Test: access admin api using a new token
            String id = JsonPath.from(response).get("response.id");
            response = checkGetMethod(requestBody, ITEM_ENDPOINT_SUFFIX + "/" + id).asString();
            String token = JsonPath.from(response).get("response.setting.token");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jun 12 02:18:38 GMT 2025
    - 3.7K bytes
    - Click Count (0)
Back to Top