Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,344 for response (0.04 sec)

  1. regression-test/src/androidTest/java/okhttp/regression/compare/OkHttpClientTest.java

        Request request = new Request.Builder()
            .url("https://google.com/robots.txt")
            .build();
        try (Response response = client.newCall(request).execute()) {
          assertEquals(200, response.code());
          assertEquals(Protocol.HTTP_2, response.protocol());
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Nov 14 17:38:22 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

            void testInheritedProperties() {
                // Verify that the response inherits from ServerMessageBlock2Response
                assertTrue(response instanceof jcifs.internal.smb2.ServerMessageBlock2Response);
    
                // Test some inherited methods
                assertFalse(response.isReceived());
                assertFalse(response.isError());
                assertNull(response.getExpiration());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt

                  return null // Give up, we've already attempted to authenticate.
                }
    
                println("Authenticating for response: $response")
                println("Challenges: ${response.challenges()}")
                val credential = Credentials.basic("jesse", "password1")
                return response.request
                  .newBuilder()
                  .header("Authorization", credential)
                  .build()
              }
            },
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  4. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt

        replaceWith =
          ReplaceWith(
            expression = "response.processEventSource(listener)",
            imports = ["okhttp3.sse.EventSource.Companion.processEventSource"],
          ),
        level = DeprecationLevel.WARNING,
      )
      @JvmStatic
      fun processResponse(
        response: Response,
        listener: EventSourceListener,
      ): Unit = response.processEventSource(listener)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                CreateContextResponse response = mock(CreateContextResponse.class);
                when(response.getName()).thenReturn(expectedName);
    
                byte[] actualName = response.getName();
                assertArrayEquals(expectedName, actualName);
                verify(response, times(1)).getName();
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/ApiResult.java

    /**
     * This class represents the base response structure for API results.
     * It encapsulates the API response and provides methods to build different types of API responses.
     */
    public class ApiResult {
    
        /**
         * The API response object.
         */
        protected ApiResponse response = null;
    
        /**
         * Constructs an ApiResult with the specified ApiResponse.
         * @param response The API response object.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java

            assertEquals(b, response.b);
            assertEquals(0, response.off);
        }
    
        @Test
        public void testSetParam() {
            byte[] b = new byte[0];
            response.setParam(b, 0);
            assertEquals(b, response.b);
            assertEquals(0, response.off);
        }
    
        @Test
        public void testWriteParameterWordsWireFormat() {
            assertEquals(0, response.writeParameterWordsWireFormat(new byte[0], 0));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/Authenticate.java

            .url("http://publicobject.com/secrets/hellosecret.txt")
            .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 Authenticate().run();
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt

        val request = Request(server.url("/"))
    
        val response = client.newCall(request).execute()
    
        response.use {
          assertEquals(200, response.code)
          assertEquals(TlsVersion.TLS_1_3, response.handshake?.tlsVersion)
          assertEquals(Protocol.HTTP_2, response.protocol)
    
          assertThat(response.exchangeAccessor!!.connectionAccessor.socket())
            .isInstanceOf<SSLSocketImpl>()
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketRecorder.kt

        val webSocket: WebSocket,
        val response: Response,
      )
    
      internal class Failure(
        val t: Throwable,
        val response: Response?,
      ) {
        val responseBody: String? =
          when {
            response != null && response.code != 101 -> response.body.string()
            else -> null
          }
    
        override fun toString(): String =
          when (response) {
            null -> "Failure[$t]"
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top