Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for addHeader (0.08 sec)

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

      @Test
      fun authenticatingTunnelProxyConnect() {
        enableTlsWithTunnel()
        server.enqueue(
          MockResponse.Builder()
            .inTunnel()
            .code(407)
            .addHeader("Proxy-Authenticate: Basic realm=\"localhost\"")
            .addHeader("Connection: close")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .inTunnel()
            .build(),
        )
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  2. okhttp/api/okhttp.api

    	public fun toString ()Ljava/lang/String;
    	public final fun url ()Lokhttp3/HttpUrl;
    }
    
    public class okhttp3/Request$Builder {
    	public fun <init> ()V
    	public fun addHeader (Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
    	public fun build ()Lokhttp3/Request;
    	public fun cacheControl (Lokhttp3/CacheControl;)Lokhttp3/Request$Builder;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

      fun gzippedResponseBody(
        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Content-Encoding: gzip")
            .body(gzip("ABCABCABC"))
            .build(),
        )
        val call = client.newCall(Request(server.url("/r1")))
        val response = call.execute()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
Back to top