Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 1,330 for responsive (0.04 sec)

  1. android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt

              e: IOException,
            ) {
              println("failed: $e")
            }
    
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              println("response: ${response.code}")
              response.close()
            }
          },
        )
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Aug 19 08:10:39 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/PostForm.java

            .url("https://en.wikipedia.org/w/index.php")
            .post(formBody)
            .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 PostForm().run();
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java

     * Tests for the {@link Trans2SetFileInformationResponse} class.
     */
    class Trans2SetFileInformationResponseTest {
    
        private Trans2SetFileInformationResponse response;
    
        @BeforeEach
        void setUp() {
            // Initialize a new response object before each test
            response = new Trans2SetFileInformationResponse();
        }
    
        /**
         * Test for the constructor of {@link Trans2SetFileInformationResponse}.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

      fun testOkHttpDirect() {
        testRequest {
          val client = OkHttpClient()
    
          val response =
            client
              .newCall(
                Request((mockServer.endpoint + "/person?name=peter").toHttpUrl()),
              ).execute()
    
          assertThat(response.body.string()).contains("Peter the person")
          assertThat(response.protocol).isEqualTo(Protocol.HTTP_1_1)
        }
      }
    
      @Test
      fun testOkHttpProxied() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

         * @return true if the operation was successful, false otherwise.
         */
        public boolean deleteAllWords() {
            final SuggestDeleteResponse response = suggester.indexer().deleteAll();
            if (response.hasError()) {
                logger.warn("Failed to delete all words.", response.getErrors().get(0));
                return false;
            }
            refresh();
            return true;
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/NtlmServlet.java

                    response.setHeader("WWW-Authenticate", "NTLM");
                    if (offerBasic) {
                        response.addHeader("WWW-Authenticate", "Basic realm=\"" + this.realm + "\"");
                    }
                    response.setHeader("Connection", "close");
                    response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
                    response.flushBuffer();
                    return;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (1)
  7. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

        Note over client,tasks: Can raise exception for dependency, handled after response is sent
        Note over client,operation: Can raise HTTPException and can change the response
        client ->> dep: Start request
        Note over dep: Run code up to yield
        opt raise
            dep -->> handler: Raise HTTPException
            handler -->> client: HTTP error response
            dep -->> dep: Raise other exception
        end
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/transport/RequestTest.java

        @Test
        void testGetResponse() {
            // Test case for getResponse method
            Response mockResponse = mock(Response.class); // Mock a response object
            when(mockRequest.getResponse()).thenReturn(mockResponse);
    
            Response actualResponse = mockRequest.getResponse();
    
            assertEquals(mockResponse, actualResponse, "Response should match the mocked object.");
            verify(mockRequest, times(1)).getResponse();
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

      private fun assert200Http2Response(
        response: Response,
        expectedHost: String,
      ) {
        assertThat(response.code).isEqualTo(200)
        assertThat(response.request.url.host).isEqualTo(expectedHost)
        assertThat(response.protocol).isEqualTo(Protocol.HTTP_2)
        response.body.close()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/Request.java

     * Extends the common request interface with type-safe response handling,
     * allowing requests to specify their expected response type.
     *
     * @author mbechler
     * @param <T> response type
     */
    public interface Request<T extends CommonServerMessageBlockResponse> extends CommonServerMessageBlockRequest {
    
        /**
         * Initializes and returns a response object for this request.
         *
         * @param tc the CIFS context
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top