Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setReadTimeout (0.08 sec)

  1. src/main/java/jcifs/http/NtlmHttpURLConnection.java

        }
    
    
        @Override
        public int getReadTimeout () {
            return this.connection.getReadTimeout();
        }
    
    
        @Override
        public void setReadTimeout ( int timeout ) {
            this.connection.setReadTimeout(timeout);
        }
    
    
        @Override
        public void setRequestProperty ( String key, String value ) {
            if ( key == null )
                throw new NullPointerException();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 25.5K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .clearHeaders()
            .addHeader("Content-Length: 4"),
        )
        server.enqueue(MockResponse().setBody("DEF"))
        val urlConnection = server.url("/").toUrl().openConnection()
        urlConnection.setReadTimeout(1000)
        val inputStream = urlConnection.getInputStream()
        assertThat(inputStream.read()).isEqualTo('A'.code)
        assertThat(inputStream.read()).isEqualTo('B'.code)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top