Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 203 for Sall (0.13 sec)

  1. okhttp/src/test/java/okhttp3/InsecureForHostTest.kt

        val client =
          clientTestRule.newClientBuilder()
            .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager)
            .build()
    
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.handshake!!.cipherSuite).isNotNull()
        assertThat(response.handshake!!.tlsVersion).isNotNull()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

          address = address,
          proxy = proxy,
          socketAddress = socketAddress,
        )
      }
    
      fun newChain(call: RealCall): RealInterceptorChain {
        return RealInterceptorChain(
          call = call,
          interceptors = listOf(),
          index = 0,
          exchange = null,
          request = call.request(),
          connectTimeoutMillis = 10_000,
          readTimeoutMillis = 10_000,
          writeTimeoutMillis = 10_000,
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

            OkHttpClient.Builder()
              .eventListenerFactory(
                clientTestRule.wrap(
                  object : EventListener() {
                    override fun connectionAcquired(
                      call: Call,
                      connection: Connection,
                    ) {
                      socketClass = connection.socket().javaClass.name
                    }
                  },
                ),
              )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import okio.Timeout
    
    open class FailingCall : Call {
      override fun request(): Request = error("unexpected")
    
      override fun execute(): Response = error("unexpected")
    
      override fun enqueue(responseCallback: Callback): Unit = error("unexpected")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  5. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

        assumeNetwork()
    
        val request = Request("https://www.google.com/robots.txt".toHttpUrl())
    
        val networkRequest =
          request.newBuilder()
            .build()
    
        val call = client.newCall(networkRequest)
    
        call.execute().use { response ->
          assertThat(response.code).isEqualTo(200)
          assertThat(response.cacheResponse).isNull()
        }
    
        val cachedCall = client.newCall(request)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectInterceptor.kt

     */
    object ConnectInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val realChain = chain as RealInterceptorChain
        val exchange = realChain.call.initExchange(realChain)
        val connectedChain = realChain.copy(exchange = exchange)
        return connectedChain.proceed(realChain.request)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

          addHeaderLenient(headers, name, value.toString())
        }
    
        /** Removes all headers named [name], then adds a new header with the name and value. */
        fun setHeader(
          name: String,
          value: Any,
        ) = apply {
          removeHeader(name)
          addHeader(name, value)
        }
    
        /** Removes all headers named [name]. */
        fun removeHeader(name: String) =
          apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/FailedPlan.kt

      override val isReady = false
    
      override fun connectTcp() = result
    
      override fun connectTlsEtc() = result
    
      override fun handleSuccess() = error("unexpected call")
    
      override fun cancel() = error("unexpected cancel")
    
      override fun retry() = error("unexpected retry")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureAndroidTrustManager.kt

        host: String,
      ): List<Certificate> {
        if (host in insecureHosts) return listOf()
        try {
          val method =
            checkServerTrustedMethod
              ?: throw CertificateException("Failed to call checkServerTrusted")
          return method.invoke(delegate, chain, authType, host) as List<Certificate>
        } catch (e: InvocationTargetException) {
          throw e.targetException
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

            it.proceed(it.request())
          }
          .build()
      }
    
      private fun makeRequest(client: OkHttpClient): Handshake {
        val call = client.newCall(Request(server.url("/")))
        return call.execute().use { it.handshake!! }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top