- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 220 for OkHttp (0.1 sec)
-
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) } // https://github.com/square/okhttp/issues/386 @Test fun shoutcast() { val statusLine = parse("ICY 200 OK") assertThat(statusLine.message).isEqualTo("OK") assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_0)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.5K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt
@Testcontainers @Isolated class BasicLoomTest { @JvmField @RegisterExtension val platform = PlatformRule() // Use mock server so we are strictly testing OkHttp client only in this test. // We should test MockWebServer later. @Container val mockServer: MockServerContainer = MockServerContainer(MOCKSERVER_IMAGE) val capturedOut = ByteArrayOutputStream()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 11:15:46 UTC 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WebPlatformToAsciiData.kt
var output: String? = null var comment: String? = null override fun toString() = "input=$input output=$output" companion object { fun load(): List<WebPlatformToAsciiData> { val path = okHttpRoot / "okhttp/src/test/resources/web-platform-test-toascii.json" return SYSTEM_FILE_SYSTEM.read(path) { Json.decodeFromString<List<WebPlatformToAsciiData>>(readUtf8()) } } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 1.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
* authenticator. This gives the authenticator the option to customize the CONNECT request. It can * decline to do so by returning null, in which case OkHttp will use it as-is. */ @Throws(IOException::class) private fun createTunnelRequest(route: Route): Request { val proxyConnectRequest = Request.Builder() .url(route.address.url)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 12K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RouteDatabase.kt
*/ package okhttp3.internal.connection import okhttp3.Route /** * A denylist of failed routes to avoid when creating a new connection to a target address. This is * used so that OkHttp can learn from its mistakes: if there was a failure attempting to connect to * a specific IP address or proxy server, that failure is remembered and alternate routes are * preferred. */ class RouteDatabase {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java
import okhttp3.RequestBody; import okhttp3.Response; import okio.BufferedSink; import okio.GzipSink; import okio.Okio; public final class RequestBodyCompression { /** * The Google API KEY for OkHttp recipes. If you're using Google APIs for anything other than * running these examples, please request your own client ID! * * https://console.developers.google.com/project */
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat May 25 18:02:55 UTC 2019 - 3.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/internal.kt
return if (cipherSuitesAsString != null) { // 3 options here for ordering // 1) Legacy Platform - based on the Platform/Provider existing ordering in // sslSocket.enabledCipherSuites // 2) OkHttp Client - based on MODERN_TLS source code ordering // 3) Caller specified but assuming the visible defaults in MODERN_CIPHER_SUITES are rejigged // to match legacy i.e. the platform/provider //
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.7K bytes - Viewed (0) -
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java
import okhttp3.Protocol; import okhttp3.Request; import okhttp3.Response; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; /** * Create UNIX domain sockets for MockWebServer and OkHttp and connect 'em together. Note that we * cannot do TLS over domain sockets. */ public class ClientAndServer { public void run() throws Exception { File socketFile = new File("/tmp/ClientAndServer.sock");
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Dec 24 03:46:30 UTC 2018 - 2.1K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt
if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } companion object { /** * The imgur client ID for OkHttp recipes. If you're using imgur for anything other than running * these examples, please request your own client ID! https://api.imgur.com/oauth2 */ private const val IMGUR_CLIENT_ID = "9199fdef135c122"
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt
alpnResult?.toString(Charsets.UTF_8) } catch (e: IllegalAccessException) { throw AssertionError(e) } catch (e: InvocationTargetException) { // https://github.com/square/okhttp/issues/5587 val cause = e.cause when { cause is NullPointerException && cause.message == "ssl == null" -> null else -> throw AssertionError(e) } } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0)