Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 53 for interfaces (0.28 sec)

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

        return result
      }
    
      override fun toString(): String = "$name [$tagClass/$tag]"
    
      /** Reads and writes values without knowledge of the enclosing tag, length, or defaults. */
      interface Codec<T> {
        fun decode(reader: DerReader): T
    
        fun encode(
          writer: DerWriter,
          value: T,
        )
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. docs/changelogs/upgrading_to_okhttp_4.md

    | ResponseBody.create(String)         | String.toResponseBody()         |
    
    
    SAM Conversions
    ---------------
    
    When you use Java APIs from Kotlin you can operate on Java interfaces as if they were Kotlin
    lambdas. The [feature][java_sams] is available for interfaces that define a Single Abstract Method
    (SAM).
    
    But when you use Kotlin APIs from Kotlin there’s no automatic conversion. Code that used SAM lambdas
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/idn/IdnStringprep.kt

          }
        }
    
        return mapResult.readUtf8()
      }
    }
    
    interface CodePointMapping {
      /**
       * Returns a (possibly-empty) string that [codePoint] maps to, or null if [codePoint] is not
       * mapped.
       */
      operator fun get(codePoint: Int): String?
    }
    
    interface CodePointSet {
      operator fun contains(codePoint: Int): Boolean
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Call.kt

    import okio.Timeout
    
    /**
     * A call is a request that has been prepared for execution. A call can be canceled. As this object
     * represents a single request/response pair (stream), it cannot be executed twice.
     */
    interface Call : Cloneable {
      /** Returns the original request that initiated this call. */
      fun request(): Request
    
      /**
       * Invokes the request immediately, and blocks until the response can be processed or is in error.
       *
    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. mockwebserver/api/mockwebserver3.api

    	public static final field INSTANCE Lmockwebserver3/SocketPolicy$StallSocketAtStart;
    }
    
    public abstract interface class mockwebserver3/Stream {
    	public abstract fun cancel ()V
    	public abstract fun getRequestBody ()Lokio/BufferedSource;
    	public abstract fun getResponseBody ()Lokio/BufferedSink;
    }
    
    public abstract interface class mockwebserver3/StreamHandler {
    	public abstract fun handle (Lmockwebserver3/Stream;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 03 21:59:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

          val queue = readyQueues[i]
          queue.cancelAllAndDecide()
          if (queue.futureTasks.isEmpty()) {
            readyQueues.removeAt(i)
          }
        }
      }
    
      interface Backend {
        fun nanoTime(): Long
    
        fun coordinatorNotify(taskRunner: TaskRunner)
    
        fun coordinatorWait(
          taskRunner: TaskRunner,
          nanos: Long,
        )
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        if (index == -1) return null
    
        val nextTask = serialTaskQueue.removeAt(index)
        currentTask = nextTask
        contextSwitchCount++
        nextTask.start()
        return nextTask
      }
    
      private interface SerialTask {
        /** Returns true if this task is ready to start. */
        fun isReady() = true
    
        /** Do this task's work, and then start another, such as by calling [startNextTask]. */
        fun start()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      }
    }
    
    /**
     * Returns true if file streams can be manipulated independently of their paths. This is typically
     * true for systems like Mac, Unix, and Linux that use inodes in their file system interface. It is
     * typically false on Windows.
     *
     * If this returns false we won't permit simultaneous reads and writes. When writes commit we need
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

          if (type != TYPE_CONTINUATION) throw IOException("$type != TYPE_CONTINUATION")
          if (streamId != previousStreamId) throw IOException("TYPE_CONTINUATION streamId changed")
        }
      }
    
      interface Handler {
        @Throws(IOException::class)
        fun data(
          inFinished: Boolean,
          streamId: Int,
          source: BufferedSource,
          length: Int,
        )
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

    import org.junit.jupiter.api.Timeout
    import org.junit.jupiter.api.extension.RegisterExtension
    import org.junit.jupiter.params.ParameterizedTest
    import org.junit.jupiter.params.provider.ArgumentsSource
    
    /** Test how HTTP/2 interacts with HTTP features.  */
    @Timeout(60)
    @Flaky
    @Tag("Slow")
    class HttpOverHttp2Test {
      class ProtocolParamProvider : SimpleProvider() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top