Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for starks (0.22 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt

       * [reader]. For example, if the reader's peeked tag isn't readable by this adapter, it may return
       * a default value.
       *
       * If this does read a value, it starts with the tag and length, and reads an entire value,
       * including any potential composed values.
       *
       * If there's nothing to read and no default value, this will throw an exception.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

              }
            }
          }
    
          val startNs = System.nanoTime()
          val response: Response
          try {
            response = chain.proceed(request)
          } catch (e: Exception) {
            logger.log("<-- HTTP FAILED: $e")
            throw e
          }
    
          val tookMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
    
          val responseBody = response.body!!
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  3. docs/changelogs/changelog_4x.md

    
    ## Version 4.6.0
    
    _2020-04-28_
    
     *  Fix: Follow HTTP 307 and 308 redirects on methods other than GET and POST. We're reluctant to
        change OkHttp's behavior in handling common HTTP status codes, but this fix is overdue! The new
        behavior is now consistent with [RFC 7231][rfc_7231_647], which is newer than OkHttp itself.
        If you want this update with the old behavior use [this interceptor][legacy_interceptor].
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      /**
       * Starts the server on the loopback interface for the given port.
       *
       * @param port the port to listen to, or 0 for any available port. Automated tests should always
       * use port 0 to avoid flakiness when a specific port is unavailable.
       */
      @Throws(IOException::class)
      @JvmOverloads
      fun start(port: Int = 0) = start(InetAddress.getByName("localhost"), port)
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

          val rangeLimit =
            when {
              r + 1 < rangesOffsets.size -> rangesOffsets[r + 1] * 4
              else -> rangesOffsets.size * 4
            }
    
          // Confirm this range starts with byte 0.
          assertThat(compactTable.ranges[rangePos].code).isEqualTo(0)
    
          // Confirm this range's index byte is increasing.
          val rangeStarts = mutableListOf<Int>()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheTest.kt

            .body("A")
            .status("HTTP/1.1 200 A-OK")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .code(HttpURLConnection.HTTP_NOT_MODIFIED)
            .build(),
        )
    
        // scenario 2: condition fails
        server.enqueue(
          response.newBuilder()
            .body("B")
            .status("HTTP/1.1 200 B-OK")
            .build(),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

        delegate.enqueue(response.wrap())
      }
    
      @Throws(IOException::class)
      @JvmOverloads
      fun start(port: Int = 0) {
        started = true
        delegate.start(port)
      }
    
      @Throws(IOException::class)
      fun start(
        inetAddress: InetAddress,
        port: Int,
      ) {
        started = true
        delegate.start(inetAddress, port)
      }
    
      @Synchronized
      @Throws(IOException::class)
      fun shutdown() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

        }
        assertThat(taskFaker.executeCallCount).isEqualTo(1)
    
        // Running the red task starts another thread, so the two can run in parallel.
        taskFaker.runNextTask()
        assertThat(log).containsExactly("red:starting@0")
        assertThat(taskFaker.executeCallCount).isEqualTo(2)
    
        // Next the blue task starts.
        taskFaker.runNextTask()
        assertThat(log).containsExactly(
          "red:starting@0",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 23K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

      internal val eventListener: EventListener,
      internal val finder: ExchangeFinder,
      private val codec: ExchangeCodec,
    ) {
      /** True if the request body need not complete before the response body starts. */
      internal var isDuplex: Boolean = false
        private set
    
      /** True if there was an exception on the connection to the peer. */
      internal var hasFailure: Boolean = false
        private set
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  10. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

        server.enqueue(MockResponse())
        server.enqueue(MockResponse())
        val request = Request(server.url("/"))
        val response = client.newCall(request).execute()
        response.body.close()
    
        // This client shares a connection pool but has a different SSL socket factory.
        val handshakeCertificates2 = HandshakeCertificates.Builder().build()
        val anotherClient =
          client.newBuilder()
            .sslSocketFactory(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
Back to top