- Sort Score
- Result 10 results
- Languages All
Results 431 - 440 of 531 for Fun (0.02 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/http/StatusLine.kt
@JvmField val code: Int, @JvmField val message: String, ) { override fun toString(): String { return buildString { if (protocol == Protocol.HTTP_1_0) { append("HTTP/1.0") } else { append("HTTP/1.1") } append(' ').append(code) append(' ').append(message) } } companion object { fun get(response: Response): StatusLine {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 3.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Credentials.kt
import okio.ByteString.Companion.encode /** Factory for HTTP authorization credentials. */ object Credentials { /** Returns an auth credential for the Basic scheme. */ @JvmStatic @JvmOverloads fun basic( username: String, password: String, charset: Charset = ISO_8859_1, ): String { val usernameAndPassword = "$username:$password" val encoded = usernameAndPassword.encode(charset).base64()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp-urlconnection/src/main/kotlin/okhttp3/JavaNetAuthenticator.kt
* .build() * ``` */ @Deprecated(message = "Use okhttp3.Authenticator.Companion.JAVA_NET_AUTHENTICATOR instead") class JavaNetAuthenticator : Authenticator { @Throws(IOException::class) override fun authenticate( route: Route?, response: Response, ): Request? = JAVA_NET_AUTHENTICATOR.authenticate(route, response)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt
*/ package okhttp3 import assertk.assertThat import assertk.assertions.isEqualTo import kotlin.test.Test import okhttp3.RequestBody.Companion.toRequestBody class CommonRequestBodyTest { @Test fun correctContentType() { val body = "Body" val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf())) val contentType = requestBody.contentType()!!
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 1.1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponseBody.kt
* called by readers. */ @ExperimentalOkHttpApi interface MockResponseBody { /** The length of this response in bytes, or -1 if unknown. */ val contentLength: Long @Throws(IOException::class) fun writeTo(sink: BufferedSink)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/TlsVersion.kt
@JvmName("-deprecated_javaName") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "javaName"), level = DeprecationLevel.ERROR, ) fun javaName(): String = javaName companion object { @JvmStatic fun forJavaName(javaName: String): TlsVersion { return when (javaName) { "TLSv1.3" -> TLS_1_3 "TLSv1.2" -> TLS_1_2 "TLSv1.1" -> TLS_1_1
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/flowcontrol/WindowCounter.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 1.4K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/BootstrapDns.kt
*/ internal class BootstrapDns( private val dnsHostname: String, private val dnsServers: List<InetAddress>, ) : Dns { @Throws(UnknownHostException::class) override fun lookup(hostname: String): List<InetAddress> { if (this.dnsHostname != hostname) { throw UnknownHostException( "BootstrapDns called for $hostname instead of $dnsHostname", ) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/types/SuiteId.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Apr 02 01:44:15 UTC 2024 - 842 bytes - Viewed (0)