- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 508 for eval (0.03 sec)
-
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt
private set var webSocketListener: WebSocketListener? = null private set val pushPromises: List<PushPromise> get() = promises init { setResponseCode(200) setHeader("Content-Length", 0L) } public override fun clone(): MockResponse { val result = super.clone() as MockResponse result.headersBuilder = headersBuilder.build().newBuilder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 7.1K 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() private lateinit var executor: ExecutorService
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.7K bytes - Viewed (1) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt
* * If there's nothing to read and no default value, this will throw an exception. */ fun fromDer(reader: DerReader): T fun fromDer(byteString: ByteString): T { val buffer = Buffer().write(byteString) val reader = DerReader(buffer) return fromDer(reader) } /** * Writes [value] to this adapter, unless it is the default value and can be safely omitted. *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
class HeldCertificateTest { @RegisterExtension var platform = PlatformRule() @Test fun defaultCertificate() { val now = System.currentTimeMillis() val heldCertificate = HeldCertificate.Builder().build() val certificate = heldCertificate.certificate assertThat(certificate.getSubjectX500Principal().name, "self-signed") .isEqualTo(certificate.getIssuerX500Principal().name)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 22.6K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServicePacket.java
static void writeInt2(final int val, final byte[] dst, int dstIndex) { dst[dstIndex] = (byte) (val >> 8 & 0xFF); dstIndex++; dst[dstIndex] = (byte) (val & 0xFF); } static void writeInt4(final int val, final byte[] dst, int dstIndex) { dst[dstIndex] = (byte) (val >> 24 & 0xFF); dstIndex++; dst[dstIndex++] = (byte) (val >> 16 & 0xFF);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServicePacket.java
static void writeInt2(final int val, final byte[] dst, int dstIndex) { dst[dstIndex] = (byte) (val >> 8 & 0xFF); dstIndex++; dst[dstIndex] = (byte) (val & 0xFF); } static void writeInt4(final int val, final byte[] dst, int dstIndex) { dst[dstIndex] = (byte) (val >> 24 & 0xFF); dstIndex++; dst[dstIndex++] = (byte) (val >> 16 & 0xFF);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TestTls13Request.kt
* as part of MODERN_TLS or folded into the default OkHttp client once published and * available in JDK11 or Conscrypt. */ private val TLS_13 = ConnectionSpec .Builder(true) .cipherSuites(*TLS13_CIPHER_SUITES.toTypedArray()) .tlsVersions(TlsVersion.TLS_1_3) .build() private val TLS_12 = ConnectionSpec .Builder(ConnectionSpec.RESTRICTED_TLS) .tlsVersions(TlsVersion.TLS_1_2) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu May 22 14:39:30 UTC 2025 - 3.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseJvmTest.kt
import okio.buffer import org.junit.jupiter.api.Test class ResponseJvmTest { @Test fun testEmptyByDefaultIfTrailersNotSet() { val response = newResponse("".toResponseBody()) assertThat(response.trailers()).isEmpty() } @Test fun worksIfTrailersSet() { val response = newResponse("".toResponseBody()) { trailers( object : TrailersSource {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 18:57:05 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt
-----END CERTIFICATE----- """.trimIndent().decodeCertificatePem() private val client: OkHttpClient init { // This implementation just embeds the PEM files in Java strings; most applications will // instead read this from a resource file that gets bundled with the application. val certificates = HandshakeCertificates .Builder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.8K bytes - Viewed (0)