- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 148 for host (0.23 sec)
-
mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt
* was empty or unchunked. */ val chunkSizes: List<Int>, /** The total size of the body of this POST request (before truncation).*/ val bodySize: Long, /** The body of this POST request. This may be truncated. */ val body: Buffer, /** * The index of this request on its HTTP connection. Since a single HTTP connection may serve
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 3.8K bytes - Viewed (1) -
samples/guide/src/main/java/okhttp3/recipes/PreemptiveAuth.java
private final String host; BasicAuthInterceptor(String host, String username, String password) { this.credentials = Credentials.basic(username, password); this.host = host; } @Override public Response intercept(Chain chain) throws IOException { Request request = chain.request(); if (request.url().host().equals(host)) { request = request.newBuilder()
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) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.assertLogMatch(Regex("""dnsStart: ${url.host}""")) .assertLogMatch(Regex("""dnsEnd: \[.+]""")) .assertLogMatch(Regex("""connectStart: ${url.host}/.+ DIRECT""")) .assertLogMatch(Regex("""connectEnd: http/1.1""")) .assertLogMatch( Regex( """connectionAcquired: Connection\{${url.host}:\d+, proxy=DIRECT hostAddress=${url.host}/.+ cipherSuite=none protocol=http/1\.1\}""", ), )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 10.2K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt
names: List<String>, ) { var time = System.currentTimeMillis() for (dns in dnsProviders) { println("Testing ${dns.url}") for (host in names) { print("$host: ") System.out.flush() try { val results = dns.lookup(host) println(results) } catch (uhe: UnknownHostException) { var e: Throwable? = uhe while (e != null) { println(e)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.2K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt
} catch (e: Exception) { false } } .build() val request = Request.Builder() .url("https://sni.cloudflaressl.com/cdn-cgi/trace") .header("Host", "cloudflare-dns.com") .build() client.newCall(request).execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.protocol).isEqualTo(Protocol.HTTP_2)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt
* [HTTP Public Key Pinning (HPKP)][rfc_7469] or SHA-1 base64 hashes as in Chromium's * [static certificates][static_certificates]. * * ## Setting up Certificate Pinning * * The easiest way to pin a host is turn on pinning with a broken configuration and read the * expected configuration when the connection fails. Be sure to do this on a trusted network, and
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 14.2K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt
val host = url.host return host.substring(1, host.length - 5).lowercase() } override fun canonicalize(s: String): String = s.lowercase() }, PATH { override fun urlString(value: String): String = "http://example.com/a${value}z/" override fun encodedValue(url: HttpUrl): String { val path = url.encodedPath return path.substring(2, path.length - 2) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 12.3K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt
val client = OkHttpClient.Builder() .trustMockServer() .build() @Test fun testRequest() { MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient -> mockServerClient .`when`( request().withPath("/person") .withQueryStringParameter("name", "peter"), )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 3.3K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
assertThat(connection.inputStream.source().buffer().readUtf8()).contains("Peter the person") } } private fun testRequest(function: (MockServerClient) -> Unit) { MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient -> val request = request().withPath("/person") .withQueryStringParameter("name", "peter") mockServerClient .`when`(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 5.9K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Dec 23 10:26:25 GMT 2023 - 3.8K bytes - Viewed (3)