Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 91 for Hong (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/BaseTestHandler.kt

      override fun goAway(
        lastGoodStreamId: Int,
        errorCode: ErrorCode,
        debugData: ByteString,
      ) {
        fail("")
      }
    
      override fun windowUpdate(
        streamId: Int,
        windowSizeIncrement: Long,
      ) {
        fail("")
      }
    
      override fun priority(
        streamId: Int,
        streamDependency: Int,
        weight: Int,
        exclusive: Boolean,
      ) {
        fail("")
      }
    
      override fun pushPromise(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

    class MockWebServer : ExternalResource(), Closeable {
      @ExperimentalOkHttpApi
      val delegate = mockwebserver3.MockWebServer()
    
      val requestCount: Int by delegate::requestCount
    
      var bodyLimit: Long by delegate::bodyLimit
    
      var serverSocketFactory: ServerSocketFactory? by delegate::serverSocketFactory
    
      var dispatcher: Dispatcher = QueueDispatcher()
        set(value) {
          field = value
    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)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

      val carrier: Carrier
    
      /** Returns an output stream where the request body can be streamed. */
      @Throws(IOException::class)
      fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink
    
      /** This should update the HTTP engine's sentRequestMillis field. */
      @Throws(IOException::class)
      fun writeRequestHeaders(request: Request)
    
      /** Flush the request to the underlying socket. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/ResponseCommonTest.kt

          object : Source {
            var closed = false
    
            override fun close() {
              closed = true
            }
    
            override fun read(
              sink: Buffer,
              byteCount: Long,
            ): Long {
              check(!closed)
              return data.read(sink, byteCount)
            }
    
            override fun timeout(): Timeout {
              return Timeout.NONE
            }
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/WebSocket.kt

       * queue. If may return a nonzero value after the web socket has been canceled; this indicates
       * that enqueued messages were not transmitted.
       */
      fun queueSize(): Long
    
      /**
       * Attempts to enqueue `text` to be UTF-8 encoded and sent as a the data of a text (type `0x1`)
       * message.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

          Protocol.H2_PRIOR_KNOWLEDGE
        } else {
          Protocol.HTTP_2
        }
    
      @Volatile
      private var canceled = false
    
      override fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink {
        return stream!!.getSink()
      }
    
      override fun writeRequestHeaders(request: Request) {
        if (stream != null) return
    
        val hasRequestBody = request.body != null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingResponseBody.kt

      fun delegate(): ResponseBody {
        return delegate
      }
    
      override fun contentType(): MediaType? {
        return delegate.contentType()
      }
    
      override fun contentLength(): Long {
        return delegate.contentLength()
      }
    
      override fun source(): BufferedSource {
        return delegate.source()
      }
    
      override fun toString(): String {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingRequestBody.kt

      fun delegate(): RequestBody {
        return delegate
      }
    
      override fun contentType(): MediaType? {
        return delegate.contentType()
      }
    
      @Throws(IOException::class)
      override fun contentLength(): Long {
        return delegate.contentLength()
      }
    
      @Throws(IOException::class)
      override fun writeTo(sink: BufferedSink) {
        delegate.writeTo(sink)
      }
    
      override fun isDuplex(): Boolean {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-RequestBodyCommon.kt

        override fun writeTo(sink: BufferedSink) {
          sink.write(this@commonToRequestBody, offset, byteCount)
        }
      }
    }
    
    @Suppress("unused")
    fun RequestBody.commonContentLength(): Long = -1L
    
    @Suppress("unused")
    fun RequestBody.commonIsDuplex(): Boolean = false
    
    @Suppress("unused")
    fun RequestBody.commonIsOneShot(): Boolean = false
    
    /** Returns a new request body that transmits this. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt

     *
     * The returned string attempts to be column-aligned to 6 characters. For negative and large values
     * the returned string may be longer.
     */
    fun formatDuration(ns: Long): String {
      val s =
        when {
          ns <= -999_500_000 -> "${(ns - 500_000_000) / 1_000_000_000} s "
          ns <= -999_500 -> "${(ns - 500_000) / 1_000_000} ms"
          ns <= 0 -> "${(ns - 500) / 1_000} µs"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top