Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 1,292 for RESPONSE (0.04 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt

            .Builder()
            .url("https://api.github.com/gists/c2a7c39532239ff261be")
            .build()
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          val gist = gistJsonAdapter.fromJson(response.body!!.source())
    
          for ((key, value) in gist!!.files!!) {
            println(key)
            println(value.content)
          }
        }
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

        logWithTime("canceled")
      }
    
      override fun satisfactionFailure(
        call: Call,
        response: Response,
      ) {
        logWithTime("satisfactionFailure: $response")
      }
    
      override fun cacheHit(
        call: Call,
        response: Response,
      ) {
        logWithTime("cacheHit: $response")
      }
    
      override fun cacheMiss(call: Call) {
        logWithTime("cacheMiss")
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/util/transport/Transport.java

         *
         * @param request the request to send
         * @param response the response object to populate
         * @param timeout the maximum time to wait for the response in milliseconds
         * @throws IOException if an I/O error occurs during communication
         */
        public synchronized void sendrecv(final Request request, final Response response, long timeout) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            recordNameField.setAccessible(true);
            recordNameField.set(response, new Name(mockConfig));
    
            Field questionNameField = NameServicePacket.class.getDeclaredField("questionName");
            questionNameField.setAccessible(true);
            questionNameField.set(response, new Name(mockConfig));
    
            int result = response.readBodyWireFormat(src, srcIndex);
            assertTrue(result > 0);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            CommonServerMessageBlockResponse out = handle.send(request, response, RequestParam.NO_RETRY);
            assertSame(response, out);
            verify(treeConnection).send(eq(resourceLoc), eq(request), eq(response), any(RequestParam[].class));
        }
    
        @Test
        @DisplayName("send(request, response, set) forwards directly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.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 CheckHandshake().run();
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/CommonServerMessageBlockResponse.java

    package jcifs.internal;
    
    import jcifs.util.transport.Response;
    
    /**
     * Interface for SMB response messages received from server.
     * Extends the common SMB message block with response-specific functionality including
     * asynchronous response handling and response chaining capabilities.
     *
     * @author mbechler
     */
    public interface CommonServerMessageBlockResponse extends CommonServerMessageBlock, Response {
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

                // Create response from RPC message results
                WitnessUnregisterResponse response = new WitnessUnregisterResponse();
                response.setReturnCode(message.getReturnCode());
    
                if (message.isSuccess()) {
                    log.debug("Witness unregistration successful");
                } else {
                    response.setError(message.getErrorMessage());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

        private Configuration mockConfig;
        private Smb2SetInfoResponse response;
    
        @BeforeEach
        void setUp() {
            mockConfig = mock(Configuration.class);
            response = new Smb2SetInfoResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor initializes with config")
        void testConstructor() {
            assertNotNull(response);
            // Command is not set in constructor, only after decoding
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

        val call =
          client.newCall(
            Request
              .Builder()
              .url(server!!.url("/"))
              .build(),
          )
        val response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("abc")
        response.body.close()
        assertThat(listener.recordedEventTypes()).containsExactly(
          "ConnectStart",
          "ConnectEnd",
          "ConnectionAcquired",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
Back to top