Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 108 for mockWebServer (0.12 sec)

  1. build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/extension/ExternalModulesExtension.kt

        val mockitoCore = "org.mockito:mockito-core"
        val mockitoKotlin = "com.nhaarman:mockito-kotlin"
        val mockitoKotlin2 = "com.nhaarman.mockitokotlin2:mockito-kotlin"
        val mockwebserver = "com.squareup.okhttp3:mockwebserver"
        val mySqlConnector = "mysql:mysql-connector-java"
        val netty = "io.netty:netty-all"
        val opentest4j = "org.opentest4j:opentest4j"
        val samplesCheck = "org.gradle.exemplar:samples-check"
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 29 08:06:17 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

       * multiple requests, each request is assigned its own sequence number.
       */
      val sequenceNumber: Int,
      socket: Socket,
      /**
       * The failure MockWebServer recorded when attempting to decode this request. If, for example,
       * the inbound request was truncated, this exception will be non-null.
       */
      val failure: IOException? = null,
    ) {
      val method: 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)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

      private lateinit var server: MockWebServer
      private lateinit var server2: MockWebServer
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private lateinit var client: OkHttpClient
      private lateinit var cache: Cache
      private val cookieManager = CookieManager()
    
      @BeforeEach
      fun setUp(
        @MockWebServerInstance(name = "1") server: MockWebServer,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt

     * server has closed the socket before follow up requests are made.
     */
    @ExperimentalOkHttpApi
    sealed interface SocketPolicy {
      /**
       * Shutdown [MockWebServer] after writing response.
       */
      object ShutdownServerAfterResponse : SocketPolicy
    
      /**
       * Keep the socket open after the response. This is the default HTTP/1.1 behavior.
       */
      object KeepOpen : SocketPolicy
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

      }
    
      /** Returns the negotiated protocol, or null if no protocol was negotiated. */
      open fun getSelectedProtocol(sslSocket: SSLSocket): String? = null
    
      /** For MockWebServer. This returns the inbound SNI names. */
      @SuppressLint("NewApi")
      @IgnoreJRERequirement // This function is overridden to require API >= 24.
      open fun getHandshakeServerNames(sslSocket: SSLSocket): List<String> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      private lateinit var server: MockWebServer
      private lateinit var server2: MockWebServer
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client = clientTestRule.newClient()
      private var cache: Cache? = null
    
      @BeforeEach
      fun setUp(
        server: MockWebServer,
        @MockWebServerInstance("server2") server2: MockWebServer,
      ) {
        this.server = server
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  7. okhttp/build.gradle.kts

      testImplementation(projects.mockwebserver3)
      testImplementation(projects.mockwebserver3Junit4)
      testImplementation(projects.mockwebserver3Junit5)
      testImplementation(projects.mockwebserver)
      testImplementation(projects.loggingInterceptor)
      testImplementation(projects.okhttpBrotli)
      testImplementation(projects.okhttpDnsoverhttps)
      testImplementation(projects.okhttpIdnaMappingTable)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jan 04 05:32:07 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. docs/changelogs/upgrading_to_okhttp_4.md

       encodedUsername, fragment, host, password, pathSegments, pathSize, port, query,
       queryParameterNames, querySize, scheme, username
     * **MockResponse**: headers, http2ErrorCode, socketPolicy, status, trailers
     * **MockWebServer**: bodyLimit, port, protocolNegotiationEnabled, protocols, requestCount,
       serverSocketFactory
     * **MultipartBody.Part**: body, headers
     * **MultipartBody.**: boundary, parts, size, type
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/InterceptorTest.kt

    @Tag("Slow")
    class InterceptorTest {
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
      private lateinit var server: MockWebServer
      private var client = clientTestRule.newClient()
      private val callback = RecordingCallback()
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun applicationInterceptorsCanShortCircuitResponses() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
    
    package okhttp3.mockwebserver
    
    import java.util.concurrent.TimeUnit
    import okhttp3.Headers
    import okhttp3.WebSocketListener
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.http2.Settings
    import okio.Buffer
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top