Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 4,652 for http2 (0.02 sec)

  1. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

    import mockwebserver3.junit5.StartStop
    import org.apache.hc.client5.http.classic.methods.HttpGet
    import org.apache.hc.client5.http.impl.classic.HttpClients
    import org.apache.hc.core5.http.io.entity.EntityUtils
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    /**
     * Apache HttpClient 5.x.
     *
     * https://hc.apache.org/httpcomponents-client-5.0.x/index.html
     *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    
    class PostMultipart {
      private val client = OkHttpClient()
    
      fun run() {
        // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image
        val requestBody =
          MultipartBody
            .Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("title", "Square Logo")
            .addFormDataPart(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. okhttp/src/jvmMain/resources/META-INF/native-image/okhttp/okhttp/native-image.properties

    Args = -H:+AddAllCharsets --enable-http --enable-https --features=okhttp3.internal.graal.OkHttpFeature --report-unsupported-elements-at-runtime...
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 144 bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

          val expectedReason = reasons[i / 100]
          assertThat(response.status).isEqualTo("HTTP/1.1 $i $expectedReason")
          assertThat(headersToList(response)).containsExactly("Content-Length: 0")
        }
      }
    
      @Test
      fun setStatusControlsWholeStatusLine() {
        val response = MockResponse().setStatus("HTTP/1.1 202 That'll do pig")
        assertThat(headersToList(response)).containsExactly("Content-Length: 0")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  5. docs/works_with_okhttp.md

     * [okhttp-digest](https://github.com/rburgst/okhttp-digest): A digest authenticator for OkHttp.
     * [OkHttp Idling Resource](https://github.com/JakeWharton/okhttp-idling-resource): An Espresso IdlingResource for OkHttp.
     * [okhttp-client-mock](https://github.com/gmazzo/okhttp-client-mock): A simple OKHttp client mock, using a programmable request interceptor.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 26 07:59:38 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            rawSocket.closeQuietly()
          }
        }
      }
    
      /** Does all the work necessary to build a full HTTP or HTTPS connection on a raw socket. */
      @Throws(IOException::class)
      private fun connectSocket() {
        val rawSocket =
          when (route.proxy.type()) {
            Proxy.Type.DIRECT, Proxy.Type.HTTP -> route.address.socketFactory.createSocket()!!
            else -> JavaNetSocket(route.proxy)
          }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Oct 08 03:50:05 UTC 2025
    - 19.3K bytes
    - Viewed (2)
  7. CLAUDE.md

    - **License**: Apache 2.0
    - **DI**: LastaFlute DI
    - **Repo**: https://github.com/codelibs/fess-crawler
    
    ### Tech Stack
    
    - **HTTP**: Apache HttpComponents 4.5+
    - **Extraction**: Apache Tika 3.0+, POI 5.3+, PDFBox 3.0+
    - **Testing**: JUnit 4, UTFlute, Mockito 5.7.0
    - **Storage**: In-memory (default), OpenSearch (optional)
    
    ### Protocols
    
    - **HTTP/HTTPS**: Full crawling, cookies, auth, robots.txt
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 28 17:31:34 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt

      }
    
      @Test
      @Disabled
      fun testMozilla() {
        assumeNetwork()
    
        val request = Request.Builder().url("https://mozilla.org/robots.txt").build()
    
        client.newCall(request).execute().use {
          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        }
      }
    
      @Test
      fun testBuildIfSupported() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/java/okhttp3/CallJavaTest.java

      private OkHttpClient client = clientTestRule.newClient();
    
      @Test
      public void tagsSeededFromRequest() {
        Request request = new Request.Builder()
          .url(HttpUrl.get("https://square.com/"))
          .tag(Integer.class, 5)
          .tag(String.class, "hello")
          .build();
        Call call = client.newCall(request);
    
        assertEquals(5, call.tag(Integer.class));
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Oct 26 14:54:46 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt

     *
     * See also [OWASP: Certificate and Public Key Pinning][owasp].
     *
     * [charles]: http://charlesproxy.com
     * [fiddler]: http://fiddlertool.com
     * [langley]: http://goo.gl/AIx3e5
     * [owasp]: https://www.owasp.org/index.php/Certificate_and_Public_Key_Pinning
     * [rfc_7469]: http://tools.ietf.org/html/rfc7469
     * [static_certificates]: http://goo.gl/XDh6je
     */
    @Suppress("NAME_SHADOWING")
    class CertificatePinner internal constructor(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 14.1K bytes
    - Viewed (1)
Back to top