Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for define (0.17 sec)

  1. README.md

    ```kotlin
        dependencies {
           // define a BOM and its version
           implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
    
           // define any required OkHttp artifacts without version
           implementation("com.squareup.okhttp3:okhttp")
           implementation("com.squareup.okhttp3:logging-interceptor")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

      @ValueSource(booleans = [false, true])
      fun proxyMoveTest(cleanShutdown: Boolean) {
        // Define a single Proxy at myproxy:8008 that will artificially move during the test
        val proxySelector = RecordingProxySelector()
        proxySelector.proxies.add(Proxy(Proxy.Type.HTTP, InetSocketAddress("myproxy", 8008)))
    
        // Define two host names for the DNS routing of fake proxy servers
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     * return null; // Didn't find a preemptive auth scheme.
     * ```
     *
     * ## Reactive Authentication
     *
     * Implementations authenticate by returning a follow-up request that includes an authorization
     * header, or they may decline the challenge by returning null. In this case the unauthenticated
     * response will be returned to the caller that triggered it.
     *
     * Implementations should check if the initial request already included an attempt to
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Request.kt

        open fun headers(headers: Headers) = commonHeaders(headers)
    
        /**
         * Sets this request's `Cache-Control` header, replacing any cache control headers already
         * present. If [cacheControl] doesn't define any directives, this clears this request's
         * cache-control headers.
         */
        open fun cacheControl(cacheControl: CacheControl): Builder = commonCacheControl(cacheControl)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     *
     * Each entry is 4 bytes, and represents a _range_ of code points that all share a common 14-bit
     * prefix. Entries are sorted by their complete code points.
     *
     * The 4 bytes are named b0, b1, b2 and b3. We also define these supplemental values:
     *
     *  * **b2a**: b2 + 0x80
     *  * **b3a**: b3 + 0x80
     *  * **b2b3**: (b2 << 7) + b3
     *
     * b0
     * --
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *     .sslSocketFactory(sslSocketFactory, trustManager)
         *     .build();
         * ```
         *
         * ## TrustManagers on Android are Weird!
         *
         * Trust managers targeting Android must also define a method that has this signature:
         *
         * ```java
         *    @SuppressWarnings("unused")
         *    public List<X509Certificate> checkServerTrusted(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  7. okhttp-tls/README.md

        .addSubjectAlternativeName("localhost")
        .build();
    ```
    
    [`HandshakeCertificates`][handshake_certificates] keeps the certificates for a TLS handshake.
    Use its [builder][handshake_certificates_builder] to define which certificates the HTTPS server
    returns to its clients. The returned instance can create an `SSLSocketFactory` that implements this
    policy:
    
    ```java
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 9.1K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/MediaType.kt

        } catch (_: IllegalArgumentException) {
          defaultValue // This charset is invalid or unsupported. Give up.
        }
      }
    
      /**
       * Returns the parameter [name] of this media type, or null if this media type does not define
       * such a parameter.
       */
      fun parameter(name: String): String? = commonParameter(name)
    
      @JvmName("-deprecated_type")
      @Deprecated(
        message = "moved to val",
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CookieTest.kt

          .isEqualTo(2000L)
      }
    
      /** If a cookie incorrectly defines multiple 'Max-Age' attributes, the last one defined wins.  */
      @Test fun lastMaxAgeWins() {
        assertThat(parseCookie(0L, url, "a=b; Max-Age=2; Max-Age=4; Max-Age=1; Max-Age=3")!!.expiresAt)
          .isEqualTo(3000L)
      }
    
      /** If a cookie incorrectly defines multiple 'Expires' attributes, the last one defined wins.  */
      @Test fun lastExpiresAtWins() {
        assertThat(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http/StatusLineTest.kt

        assertThat(statusLine.message).isEqualTo("")
        assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_1)
        assertThat(statusLine.code).isEqualTo(code)
      }
    
      /**
       * This is not defined in the protocol but some servers won't add the leading empty space when the
       * message is empty. http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1
       */
      @Test
      fun emptyMessageAndNoLeadingSpace() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
Back to top