Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 135 for mockwebserver3 (0.11 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicReference
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.SocketEffect.ShutdownConnection
    import mockwebserver3.junit5.StartStop
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

    @file:Suppress(
      "CANNOT_OVERRIDE_INVISIBLE_MEMBER",
      "INVISIBLE_MEMBER",
      "INVISIBLE_REFERENCE",
      "ktlint:standard:property-naming",
    )
    
    package mockwebserver3
    
    import java.util.concurrent.TimeUnit
    import mockwebserver3.SocketEffect.CloseStream
    import mockwebserver3.internal.toMockResponseBody
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.WebSocketListener
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/SocketHandler.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package mockwebserver3
    
    import okio.Socket
    
    /**
     * Handles a call's request and response streams directly. Use this instead of [MockResponseBody] to
     * begin sending response data before all request data has been received.
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 14 16:09:26 UTC 2025
    - 940 bytes
    - Viewed (0)
  4. okhttp-testing-support/build.gradle.kts

    plugins {
      kotlin("jvm")
      id("ru.vyarus.animalsniffer")
    }
    
    dependencies {
      api(libs.squareup.okio)
      api(projects.mockwebserver3)
      "friendsApi"(projects.okhttp)
      api(projects.okhttpTls)
      api(libs.assertk)
      api(libs.bouncycastle.bcprov)
      implementation(libs.bouncycastle.bcpkix)
      implementation(libs.bouncycastle.bctls)
      api(libs.conscrypt.openjdk)
      api(libs.openjsse)
    
      api(rootProject.libs.junit.jupiter.engine)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 14 16:09:26 UTC 2025
    - 800 bytes
    - Viewed (1)
  5. README.md

    ```kotlin
    testImplementation("com.squareup.okhttp3:mockwebserver3:5.1.0")
    ```
    
    MockWebServer is used for firstly for internal testing, and for basic testing of apps using OkHttp client.
    It is not a full featured HTTP testing library that is developed standalone. It is not being actively developed
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

    import java.util.concurrent.TimeUnit.MILLISECONDS
    import javax.net.ServerSocketFactory
    import javax.net.SocketFactory
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.Call
    import okhttp3.CallEvent
    import okhttp3.CallEvent.CallEnd
    import okhttp3.CallEvent.CallStart
    import okhttp3.CallEvent.Canceled
    import okhttp3.CallEvent.ConnectEnd
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

    import javax.net.ssl.SSLPeerUnverifiedException
    import javax.net.ssl.SSLSession
    import javax.net.ssl.X509TrustManager
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.CertificatePinner.Companion.pin
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.HeldCertificate
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  8. maven-tests/pom.xml

    <!--      <artifactId>okhttp</artifactId>-->
          <artifactId>okhttp-jvm</artifactId>
        </dependency>
    
        <dependency>
          <groupId>com.squareup.okhttp3</groupId>
          <artifactId>mockwebserver3</artifactId>
        </dependency>
    
        <dependency>
          <groupId>com.squareup.okhttp3</groupId>
          <artifactId>logging-interceptor</artifactId>
        </dependency>
      </dependencies>
    
      <reporting>
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Jul 13 08:32:01 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/internal/ThrottledSink.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     *
     */
    package mockwebserver3.internal
    
    import okio.Buffer
    import okio.Sink
    
    /**
     * A sink that sleeps [periodDelayNanos] every [bytesPerPeriod] bytes. Unlike [okio.Throttler],
     * this permits any interval to be used.
     */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 12:43:16 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  10. mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package mockwebserver3.junit4
    
    import assertk.assertThat
    import assertk.assertions.isTrue
    import java.net.ConnectException
    import java.util.concurrent.atomic.AtomicBoolean
    import org.junit.Assert.fail
    import org.junit.Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top