Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for complete (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

            throw ProtocolException("unexpected end of stream")
          }
          try {
            super.close()
            complete(null)
          } catch (e: IOException) {
            throw complete(e)
          }
        }
    
        private fun <E : IOException?> complete(e: E): E {
          if (completed) return e
          completed = true
          return bodyComplete(bytesReceived, responseDone = false, requestDone = true, e = e)
        }
      }
    
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        writeHeader(PREFIX_CLEAN, upstreamSize, metadata.size.toLong())
        file!!.channel.force(false)
    
        // This file is complete.
        synchronized(this@Relay) {
          complete = true
        }
    
        upstream?.closeQuietly()
        upstream = null
      }
    
      fun metadata(): ByteString = metadata
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/ExperimentalOkHttpApi.kt

     */
    package okhttp3
    
    /**
     * Marks declarations that are experimental and subject to change without following SemVer
     * conventions. Both binary and source-incompatible changes are possible, including complete removal
     * of the experimental API.
     *
     * Do not use these APIs in modules that may be executed using a version of OkHttp different from
     * the version the module was compiled with.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

       * This is potentially useful for posting live event streams like video capture. Callers should
       * write to {@code sink()} and close it to complete the post.
       */
      static final class PipeBody extends RequestBody {
        private final Pipe pipe = new Pipe(8192);
        private final BufferedSink sink = Okio.buffer(pipe.sink());
    
        public BufferedSink sink() {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Jul 06 03:18:15 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

          return callDone(e)
        }
    
        return e
      }
    
      /**
       * Complete this call. This should be called once these properties are all false:
       * [requestBodyOpen], [responseBodyOpen], and [expectMoreExchanges].
       *
       * This will release the connection if it is still held.
       *
       * It will also notify the listener that the call completed; either successfully or
       * unsuccessfully.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  6. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     *
     * Ranges Data (32,612 bytes)
     * ==========================
     *
     * Each entry is 4 bytes, and represents a _range_ of code points that all share a common 14-bit
     * prefix. Entries are sorted by their complete code points.
     *
     * The 4 bytes are named b0, b1, b2 and b3. We also define these supplemental values:
     *
     *  * **b2a**: b2 + 0x80
     *  * **b3a**: b3 + 0x80
     *  * **b2b3**: (b2 << 7) + b3
     *
     * b0
     * --
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. mockwebserver/README.md

    Use MockWebServer the same way that you use mocking frameworks like
    [Mockito](https://github.com/mockito/mockito):
    
    1. Script the mocks.
    2. Run application code.
    3. Verify that the expected requests were made.
    
    Here's a complete example:
    
    ```java
    public void test() throws Exception {
      // Create a MockWebServer. These are lean enough that you can create a new
      // instance for every unit test.
      MockWebServer server = new MockWebServer();
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          redundantOpCount >= lruEntries.size
      }
    
      /**
       * Drops the entry for [key] if it exists and can be removed. If the entry for [key] is currently
       * being edited, that edit will complete normally but its value will not be stored.
       *
       * @return true if an entry was removed.
       */
      @Synchronized
      @Throws(IOException::class)
      fun remove(key: String): Boolean {
        initialize()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

            )
            .hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      /** A request body that slowly trickles bytes, expecting to not complete. */
      private object SlowRequestBody : RequestBody() {
        override fun contentType(): MediaType? = null
    
        override fun writeTo(sink: BufferedSink) {
          for (i in 0 until 50) {
            sink.writeUtf8("abc")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  10. CONTRIBUTING.md

    [many libraries][works_with_okhttp] that sit on top or hook in via existing APIs. If you build
    something that integrates with OkHttp, tell us so that we can link it!
    
    Before code can be accepted all contributors must complete our
    [Individual Contributor License Agreement (CLA)][cla].
    
    
    Code Contributions
    ------------------
    
    Get working code on a personal branch with tests passing before you submit a PR:
    
    ```
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top