Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 527 for Fun (0.03 sec)

  1. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

      private lateinit var context: Context
      private lateinit var client: OkHttpClient
    
      @Before
      fun setUp() {
        context = ApplicationProvider.getApplicationContext<Application>()
        client =
          OkHttpClient.Builder()
            .cache(Cache(FakeFileSystem(), "/cache".toPath(), 10_000_000))
            .build()
      }
    
      @Test
      fun testRequestExternal() {
        assumeNetwork()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

    /**
     * Tests Hpack implementation using https://github.com/http2jp/hpack-test-case/
     */
    open class HpackDecodeTestBase {
      private val bytesIn = Buffer()
      private val hpackReader = Hpack.Reader(bytesIn, 4096)
    
      protected fun testDecoder(story: Story) {
        for (testCase in story.cases) {
          val encoded = testCase.wire ?: continue
          bytesIn.write(encoded)
          hpackReader.readHeaders()
          assertSetEquals(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/HeadersRequestTest.kt

    import okhttp3.internal.http2.Http2ExchangeCodec.Companion.http2HeadersList
    import okhttp3.internal.http2.Http2ExchangeCodec.Companion.readHttp2HeadersList
    import org.junit.jupiter.api.Test
    
    class HeadersRequestTest {
      @Test fun readNameValueBlockDropsForbiddenHeadersHttp2() {
        val headerBlock =
          headersOf(
            ":status",
            "200 OK",
            ":version",
            "HTTP/1.1",
            "connection",
            "close",
          )
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

       */
      private fun includeAuthorityInRequestLine(
        request: Request,
        proxyType: Proxy.Type,
      ): Boolean {
        return !request.isHttps && proxyType == Proxy.Type.HTTP
      }
    
      /**
       * Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request
       * URL is. Includes the query component if it exists.
       */
      fun requestPath(url: HttpUrl): String {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt

    }
    
    class IanaSuites(
      val name: String,
      val suites: List<SuiteId>,
    ) {
      fun fromJavaName(javaName: String): SuiteId {
        return suites.firstOrNull {
          it.name == javaName || it.name == "TLS_${javaName.drop(4)}"
        } ?: throw IllegalArgumentException("No such suite: $javaName")
      }
    }
    
    suspend fun fetchIanaSuites(okHttpClient: OkHttpClient): IanaSuites {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

          toVerify.verify(signingCert.publicKey)
          true
        } catch (verifyFailed: GeneralSecurityException) {
          false
        }
      }
    
      override fun hashCode(): Int {
        return trustRootIndex.hashCode()
      }
    
      override fun equals(other: Any?): Boolean {
        return if (other === this) {
          true
        } else {
          other is BasicCertificateChainCleaner && other.trustRootIndex == trustRootIndex
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. okhttp/api/okhttp.api

    	public fun close ()V
    	public final fun delete ()V
    	public final fun directory ()Ljava/io/File;
    	public final fun directoryPath ()Lokio/Path;
    	public final fun evictAll ()V
    	public fun flush ()V
    	public final fun hitCount ()I
    	public final fun initialize ()V
    	public final fun isClosed ()Z
    	public static final fun key (Lokhttp3/HttpUrl;)Ljava/lang/String;
    	public final fun maxSize ()J
    	public final fun networkCount ()I
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

        level = DeprecationLevel.ERROR,
      )
      fun keyManager(): X509KeyManager = keyManager
    
      @JvmName("-deprecated_trustManager")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "trustManager"),
        level = DeprecationLevel.ERROR,
      )
      fun trustManager(): X509TrustManager = trustManager
    
      fun sslSocketFactory(): SSLSocketFactory = sslContext().socketFactory
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun requireClientAuth ()V
    	public final fun setBodyLimit (J)V
    	public final fun setDispatcher (Lokhttp3/mockwebserver/Dispatcher;)V
    	public final fun setProtocolNegotiationEnabled (Z)V
    	public final fun setProtocols (Ljava/util/List;)V
    	public final fun setServerSocketFactory (Ljavax/net/ServerSocketFactory;)V
    	public final fun shutdown ()V
    	public final fun start ()V
    	public final fun start (I)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  10. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

        )
      private val loggingEventListenerFactory = LoggingEventListener.Factory(logRecorder)
      private lateinit var client: OkHttpClient
      private lateinit var url: HttpUrl
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
        client =
          clientTestRule.newClientBuilder()
            .eventListenerFactory(loggingEventListenerFactory)
            .sslSocketFactory(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top