Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for ExperimentalOkHttpApi (0.24 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

    import java.util.concurrent.BlockingQueue
    import java.util.concurrent.LinkedBlockingQueue
    import java.util.logging.Logger
    import okhttp3.ExperimentalOkHttpApi
    
    /**
     * Default dispatcher that processes a script of responses. Populate the script by calling [enqueueResponse].
     */
    @ExperimentalOkHttpApi
    open class QueueDispatcher : Dispatcher() {
      protected val responseQueue: BlockingQueue<MockResponse> = LinkedBlockingQueue()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package mockwebserver3
    
    import okhttp3.ExperimentalOkHttpApi
    
    /**
     * What should be done with the incoming socket.
     *
     * Be careful when using values like [DisconnectAtEnd], [ShutdownInputAtEnd]
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/Dispatcher.kt

     * limitations under the License.
     */
    package mockwebserver3
    
    import mockwebserver3.SocketPolicy.KeepOpen
    import okhttp3.ExperimentalOkHttpApi
    
    /** Handler for mock server requests. */
    @ExperimentalOkHttpApi
    abstract class Dispatcher {
      /**
       * Returns a response to satisfy `request`. This method may block (for instance, to wait on
       * a CountdownLatch).
       */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. build.gradle.kts

        targetCompatibility = JavaVersion.VERSION_1_8.toString()
      }
    }
    
    // Opt-in to @ExperimentalOkHttpApi everywhere.
    subprojects {
      plugins.withId("org.jetbrains.kotlin.jvm") {
        kotlinExtension.sourceSets.configureEach {
          languageSettings.optIn("okhttp3.ExperimentalOkHttpApi")
        }
      }
      plugins.withId("org.jetbrains.kotlin.android") {
        kotlinExtension.sourceSets.configureEach {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jun 23 17:02:02 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt

     */
    package mockwebserver3.junit5.internal
    
    import java.io.IOException
    import java.util.logging.Level
    import java.util.logging.Logger
    import mockwebserver3.MockWebServer
    import okhttp3.ExperimentalOkHttpApi
    import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
    import org.junit.jupiter.api.extension.AfterAllCallback
    import org.junit.jupiter.api.extension.AfterEachCallback
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 11 12:12:36 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

    import mockwebserver3.internal.toMockResponseBody
    import okhttp3.ExperimentalOkHttpApi
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.WebSocketListener
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.http2.Settings
    import okio.Buffer
    
    /** A scripted response to be replayed by the mock web server. */
    @ExperimentalOkHttpApi
    class MockResponse {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

    import java.util.logging.Logger
    import javax.net.ServerSocketFactory
    import javax.net.ssl.SSLSocketFactory
    import okhttp3.ExperimentalOkHttpApi
    import okhttp3.HttpUrl
    import okhttp3.Protocol
    import org.junit.rules.ExternalResource
    
    class MockWebServer : ExternalResource(), Closeable {
      @ExperimentalOkHttpApi
      val delegate = mockwebserver3.MockWebServer()
    
      val requestCount: Int by delegate::requestCount
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/RequestBody.kt

        /** Returns a new request body that transmits this. */
        @JvmStatic
        @JvmName("create")
        @ExperimentalOkHttpApi
        fun FileDescriptor.toRequestBody(contentType: MediaType? = null): RequestBody {
          return object : RequestBody() {
            override fun contentType() = contentType
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jan 25 14:41:37 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

    import javax.net.ssl.SSLSocket
    import okhttp3.ExperimentalOkHttpApi
    import okhttp3.Handshake
    import okhttp3.Handshake.Companion.handshake
    import okhttp3.Headers
    import okhttp3.HttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.internal.platform.Platform
    import okio.Buffer
    
    /** An HTTP request that came into the mock web server. */
    @ExperimentalOkHttpApi
    class RecordedRequest(
      val requestLine: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

                  routeDatabase = routeDatabase,
                  connectionUser = user,
                ),
              ),
              taskRunner,
            )
          },
        ),
      )
    
      // Public API
      @ExperimentalOkHttpApi
      constructor(
        maxIdleConnections: Int = 5,
        keepAliveDuration: Long = 5,
        timeUnit: TimeUnit = TimeUnit.MINUTES,
        connectionListener: ConnectionListener = ConnectionListener.NONE,
      ) : this(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 03 20:39:41 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top