Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for PUBLIC (0.14 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class CheckHandshake {
      /** Rejects otherwise-trusted certificates. */
      private static final Interceptor CHECK_HANDSHAKE_INTERCEPTOR = new Interceptor() {
        final Set<String> denylist = Collections.singleton(
            "sha256/afwiKY3RxoMmLkuRW1l7QsPZTJPwDS2pdDROQjXw8ig=");
    
        @Override public Response intercept(Chain chain) throws IOException {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/guide/GetExample.java

    import okhttp3.Request;
    import okhttp3.Response;
    
    public class GetExample {
      final OkHttpClient client = new OkHttpClient();
    
      String run(String url) throws IOException {
        Request request = new Request.Builder()
            .url(url)
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          return response.body().string();
        }
      }
    
      public static void main(String[] args) throws IOException {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java

    import com.squareup.moshi.Types;
    import java.util.Collections;
    import java.util.List;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    import okhttp3.ResponseBody;
    
    public class OkHttpContributors {
      private static final String ENDPOINT = "https://api.github.com/repos/square/okhttp/contributors";
      private static final Moshi MOSHI = new Moshi.Builder().build();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * ```java
     * // The singleton HTTP client.
     * public final OkHttpClient client = new OkHttpClient();
     * ```
     *
     * Or use `new OkHttpClient.Builder()` to create a shared instance with custom settings:
     *
     * ```java
     * // The singleton HTTP client.
     * public final OkHttpClient client = new OkHttpClient.Builder()
     *     .addInterceptor(new HttpLoggingInterceptor())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          } else if (!domainMatch(urlHost, domain)) {
            return null // No domain match? This is either incompetence or malice!
          }
    
          // If the domain is a suffix of the url host, it must not be a public suffix.
          if (urlHost.length != domain.length &&
            PublicSuffixDatabase.get().getEffectiveTldPlusOne(domain) == null
          ) {
            return null
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        builder = builder.organizationalUnit("")
        builder = builder.serialNumber(BigInteger.ZERO)
        builder = builder.serialNumber(0L)
        builder = builder.keyPair(keyPair)
        builder = builder.keyPair(keyPair.public, keyPair.private)
        builder = builder.signedBy(HeldCertificate.Builder().build())
        builder = builder.certificateAuthority(0)
        builder = builder.ecdsa256()
        builder = builder.rsa2048()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  7. okhttp-logging-interceptor/api/logging-interceptor.api

    	public fun proxySelectStart (Lokhttp3/Call;Lokhttp3/HttpUrl;)V
    	public fun requestBodyEnd (Lokhttp3/Call;J)V
    	public fun requestBodyStart (Lokhttp3/Call;)V
    	public fun requestFailed (Lokhttp3/Call;Ljava/io/IOException;)V
    	public fun requestHeadersEnd (Lokhttp3/Call;Lokhttp3/Request;)V
    	public fun requestHeadersStart (Lokhttp3/Call;)V
    	public fun responseBodyEnd (Lokhttp3/Call;J)V
    	public fun responseBodyStart (Lokhttp3/Call;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 4.5K bytes
    - Viewed (1)
  8. okhttp-coroutines/api/okhttp-coroutines.api

    public final class okhttp3/coroutines/ExecuteAsyncKt {
    	public static final fun executeAsync (Lokhttp3/Call;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 163 bytes
    - Viewed (0)
  9. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

          if (privateHost && !resolvePrivateAddresses) {
            throw UnknownHostException("private hosts not resolved")
          }
    
          if (!privateHost && !resolvePublicAddresses) {
            throw UnknownHostException("public hosts not resolved")
          }
        }
    
        return lookupHttps(hostname)
      }
    
      @Throws(UnknownHostException::class)
      private fun lookupHttps(hostname: String): List<InetAddress> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
Back to top