Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 127 for Read (0.13 sec)

  1. docs/changelogs/changelog_2x.md

     *  Fix: Honor `OkUrlFactory` APIs that disable redirects.
     *  Fix: Don't crash on concurrent modification of `SPDY` SPDY settings.
    
    ## Version 2.0.0
    
    This release commits to a stable 2.0 API. Read the 2.0.0-RC1 changes for advice
    on upgrading from 1.x to 2.x.
    
    _2014-06-21_
    
     *  **API Change**: Use `IOException` in `Callback.onFailure()`. This is
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  2. build.gradle.kts

        }
    
        systemProperty("okhttp.platform", platform)
        systemProperty("junit.jupiter.extensions.autodetection.enabled", "true")
      }
    
      // https://publicobject.com/2023/04/16/read-a-project-file-in-a-kotlin-multiplatform-test/
      tasks.withType<Test>().configureEach {
        environment("OKHTTP_ROOT", rootDir)
      }
    
      if (platform == "jdk8alpn") {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:32:42 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

            } catch (e: InterruptedException) {
              throw InterruptedIOException()
            }
          }
        }
      }
    
      companion object {
        /** A large response body. Smaller bodies might successfully read after the socket is closed!  */
        private val BIG_ENOUGH_BODY = repeat('a', 64 * 1024)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

            ),
          )
          .assertLogMatch(
            Regex(
              """callFailed: \S+(?:SSLProtocolException|SSLHandshakeException|TlsFatalAlert): (?:Unexpected handshake message: client_hello|Handshake message sequence violation, 1|Read error|Handshake failed|unexpected_message\(10\)).*""",
            ),
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/InterceptorTest.kt

        }
    
        private fun uppercase(original: Source): Source {
          return object : ForwardingSource(original) {
            override fun read(
              sink: Buffer,
              byteCount: Long,
            ): Long {
              val mixedCase = Buffer()
              val count = original.read(mixedCase, byteCount)
              sink.writeUtf8(mixedCase.readUtf8().uppercase())
              return count
            }
          }
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

        SocketPolicy.DISCONNECT_DURING_REQUEST_BODY -> DisconnectDuringRequestBody
        SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY -> DisconnectDuringResponseBody
        SocketPolicy.DO_NOT_READ_REQUEST_BODY -> DoNotReadRequestBody(http2ErrorCode)
        SocketPolicy.FAIL_HANDSHAKE -> FailHandshake
        SocketPolicy.SHUTDOWN_INPUT_AT_END -> ShutdownInputAtEnd
        SocketPolicy.SHUTDOWN_OUTPUT_AT_END -> ShutdownOutputAtEnd
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

          condition.signalAll()
    
          return stream
        }
      }
    
      internal fun updateConnectionFlowControl(read: Long) {
        this.withLock {
          readBytes.update(total = read)
          val readBytesToAcknowledge = readBytes.unacknowledged
          if (readBytesToAcknowledge >= okHttpSettings.initialWindowSize / 2) {
            writeWindowUpdateLater(0, readBytesToAcknowledge)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
      }
    
      @Test
      fun head_HTTPS() {
        enableTls()
        head()
      }
    
      @Test
      fun head_HTTP_2() {
        enableProtocol(Protocol.HTTP_2)
        head()
      }
    
      @Test
      fun post() {
        server.enqueue(MockResponse(body = "abc"))
        val request =
          Request(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  9. regression-test/src/androidTest/java/okhttp/regression/LetsEncryptTest.java

    import javax.net.ssl.SSLHandshakeException;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    /**
     * Let's Encrypt expiring root test.
     *
     * Read https://community.letsencrypt.org/t/mobile-client-workarounds-for-isrg-issue/137807
     * for background.
     */
    @RunWith(AndroidJUnit4.class)
    public class LetsEncryptTest {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Nov 17 07:40:31 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  10. okhttp-android/src/main/baseline-prof.txt

    HSPLokio/Buffer;->getByte(J)B
    HSPLokio/Buffer;->indexOfElement(Lokio/ByteString;)J
    HSPLokio/Buffer;->rangeEquals(JLokio/ByteString;)Z
    HSPLokio/Buffer;->read(Lokio/Buffer;J)J
    HSPLokio/Buffer;->read([BII)I
    HSPLokio/Buffer;->readByte()B
    HSPLokio/Buffer;->readByteArray(J)[B
    HSPLokio/Buffer;->readByteString()Lokio/ByteString;
    HSPLokio/Buffer;->readByteString(J)Lokio/ByteString;
    HSPLokio/Buffer;->readInt()I
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top