Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Clone (0.13 sec)

  1. deploy_website.sh

    # https://squidfunk.github.io/mkdocs-material/
    # It requires python3 to run.
    
    set -ex
    
    REPO="******@****.***:square/okhttp.git"
    DIR=temp-clone
    
    # Delete any existing temporary website clone
    rm -rf $DIR
    
    # Clone the current repo into temp folder
    git clone $REPO $DIR
    # Replace `git clone` with these lines to hack on the website locally
    # cp -a . "../okhttp-website"
    # mv "../okhttp-website" "$DIR"
    
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Nov 20 15:26:12 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt

      override fun isExecuted(): Boolean = error("unexpected")
    
      override fun isCanceled(): Boolean = error("unexpected")
    
      override fun timeout(): Timeout = error("unexpected")
    
      override fun clone(): Call = error("unexpected")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

        private set
    
      val pushPromises: List<PushPromise>
        get() = promises
    
      init {
        setResponseCode(200)
        setHeader("Content-Length", 0L)
      }
    
      public override fun clone(): MockResponse {
        val result = super.clone() as MockResponse
        result.headersBuilder = headersBuilder.build().newBuilder()
        result.promises = promises.toMutableList()
        return result
      }
    
      @JvmName("-deprecated_getStatus")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Call.kt

       */
      fun timeout(): Timeout
    
      /**
       * Create a new, identical call to this one which can be enqueued or executed even if this call
       * has already been.
       */
      public override fun clone(): Call
    
      fun interface Factory {
        fun newCall(request: Request): Call
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  5. okcurl/README.md

    OkCurl
    ======
    
    _A curl for the next-generation web._
    
    OkCurl is an OkHttp-backed curl clone which allows you to test OkHttp's HTTP engine (including
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 09 21:19:04 GMT 2016
    - 178 bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/internal/BufferMockResponseBody.kt

    package mockwebserver3.internal
    
    import mockwebserver3.MockResponseBody
    import okio.Buffer
    import okio.BufferedSink
    
    internal fun Buffer.toMockResponseBody(): MockResponseBody {
      val defensiveCopy = clone()
      return BufferMockResponseBody(defensiveCopy)
    }
    
    internal class BufferMockResponseBody(
      val buffer: Buffer,
    ) : MockResponseBody {
      override val contentLength = buffer.size
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  7. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt

          for (inputHeader in headers) {
            val (key, value) = inputHeader.entries.iterator().next()
            result.add(Header(key, value))
          }
          return result
        }
    
      public override fun clone() = Case(seqno, this.wire, headers)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 10:26:25 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

        server.enqueue(MockResponse(body = "def"))
    
        val request = Request(server.url("/"))
    
        val call = client.newCall(request)
        val response1 = call.execute()
    
        val cloned = call.clone()
        val response2 = cloned.execute()
    
        assertThat("abc").isEqualTo(response1.body.string())
        assertThat("def").isEqualTo(response2.body.string())
      }
    
      @Test
      @Flaky
      fun testMockWebserverRequest() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

       * the internal list.
       */
      @JvmStatic
      fun fragmentBuffer(buffer: Buffer): Buffer {
        // Write each byte into a new buffer, then clone it so that the segments are shared.
        // Shared segments cannot be compacted so we'll get a long chain of short segments.
        val result = Buffer()
        while (!buffer.exhausted()) {
          val box = Buffer()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

      /**
       * Returns true if [toVerify] was signed by [signingCert]'s public key.
       *
       * @param minIntermediates the minimum number of intermediate certificates in [signingCert]. This
       *     is -1 if signing cert is a lone self-signed certificate.
       */
      private fun verifySignature(
        toVerify: X509Certificate,
        signingCert: X509Certificate,
        minIntermediates: Int,
      ): Boolean {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top