Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 108 for makin (0.14 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/AsynchronousGet.kt

                for ((name, value) in response.headers) {
                  println("$name: $value")
                }
    
                println(response.body.string())
              }
            }
          },
        )
      }
    }
    
    fun main() {
      AsynchronousGet().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsClient.kt

            userAgent = userAgent.name,
            version = userAgent.version,
            platform = userAgent.platform,
            enabled = userAgent.suiteNames.map { SuiteId(null, it) },
          )
        }
      }
    }
    
    suspend fun main() {
      val sslLabsClient =
        SslLabsClient(
          callFactory = OkHttpClient(),
        )
    
      for (client in sslLabsClient.clients()) {
        println(client)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

            if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
            println(response.request.url)
          }
        } finally {
          server.shutdown()
        }
      }
    }
    
    fun main() {
      DevServer().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/PreemptiveAuth.java

          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new PreemptiveAuth().run();
      }
    
      static final class BasicAuthInterceptor implements Interceptor {
        private final String credentials;
        private final String host;
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Nov 05 07:46:46 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt

          println(response.body.string())
        }
      }
    
      companion object {
        val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType()
      }
    }
    
    fun main() {
      PostStreaming().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java

          System.out.println("Response 2 network response:  " + response2.networkResponse());
        }
    
        System.out.println("Response 2 equals Response 1? " + response1Body.equals(response2Body));
      }
    
      public static void main(String... args) throws Exception {
        new CacheResponse(new File("CacheResponse.tmp")).run();
      }
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 2.4K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

        } catch (IOException e) {
          System.out.printf("%.2f Call failed as expected: %s%n",
              (System.nanoTime() - startNanos) / 1e9f, e);
        }
      }
    
      public static void main(String... args) throws Exception {
        new CancelCall().run();
      }
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.1K bytes
    - Viewed (0)
  8. native-image-tests/src/main/kotlin/okhttp3/TestRegistration.kt

        clazz.declaredConstructors.forEach {
          RuntimeReflection.register(it)
        }
      }
    
      private fun registerKnownTests(access: Feature.BeforeAnalysisAccess) {
        val knownTestFile = File("src/main/resources/testlist.txt").absoluteFile
        knownTestFile.readLines().forEach {
          try {
            val testClass = access.findClassByName(it)
    
            if (testClass != null) {
              access.registerAsUsed(testClass)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  9. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt

    import com.squareup.kotlinpoet.FileSpec
    import com.squareup.kotlinpoet.KModifier
    import com.squareup.kotlinpoet.PropertySpec
    import java.io.File
    import okio.FileSystem
    import okio.Path.Companion.toPath
    
    fun main(vararg args: String) {
      val data = loadIdnaMappingTableData()
      val file = generateMappingTableFile(data)
      file.writeTo(File(args[0]))
    }
    
    fun loadIdnaMappingTableData(): IdnaMappingTableData {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

    import java.net.InetAddress
    import java.net.UnknownHostException
    import java.util.concurrent.CountDownLatch
    import okio.IOException
    
    /**
     * An async domain name service that resolves IP addresses for host names.
     *
     * The main implementations will typically be implemented using specific DNS libraries such as
     *  * Android DnsResolver
     *  * OkHttp DnsOverHttps
     *  * dnsjava Resolver
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.5K bytes
    - Viewed (0)
Back to top