- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 1,059 for rval (0.05 sec)
-
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
) .dns(dns) .build() server.enqueue(MockResponse()) val url = server.url("/").newBuilder().host("localhost.localdomain").build() val call = client.newCall(Request(url = url)) val response = call.execute() assertThat(response.isSuccessful).isTrue() val recordedRequest = server.takeRequest() assertThat(recordedRequest.handshakeServerNames).containsExactly(url.host) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Request.kt
@get:JvmName("url") val url: HttpUrl = checkNotNull(builder.url) { "url == null" } @get:JvmName("method") val method: String = builder.method @get:JvmName("headers") val headers: Headers = builder.headers.build() @get:JvmName("body") val body: RequestBody? = builder.body @get:JvmName("cacheUrlOverride") val cacheUrlOverride: HttpUrl? = builder.cacheUrlOverride
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:17:44 UTC 2024 - 10.5K bytes - Viewed (0) -
build.gradle.kts
freeCompilerArgs = listOf( "-Xjvm-default=all", ) } } val platform = System.getProperty("okhttp.platform", "jdk9") val testJavaVersion = System.getProperty("test.java.version", "21").toInt() val testRuntimeOnly: Configuration by configurations.getting dependencies { testRuntimeOnly(rootProject.libs.junit.jupiter.engine)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jun 23 17:02:02 UTC 2024 - 9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
// StreamReset stream was reset: PROT... val clientCert2 = HeldCertificate.Builder() .serialNumber(4L) .commonName("Jethro Willis") .build() val client = buildClient(clientCert2) val socketFactory = buildServerSslSocketFactory() server.useHttps(socketFactory) server.requireClientAuth() val call = client.newCall(Request.Builder().url(server.url("/")).build())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 12.5K 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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 22.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseBodyTest.kt
@Test fun sourceEmpty() { val mediaType = if (null == null) null else "any/thing; charset=${null}".toMediaType() val body = "".decodeHex().toResponseBody(mediaType) val source = body.source() assertThat(source.exhausted()).isTrue() assertThat(source.readUtf8()).isEqualTo("") } @Test fun sourceClosesUnderlyingSource() { var closed = false val body: ResponseBody =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4K 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 Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 11:15:46 UTC 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
class CallServerInterceptor(private val forWebSocket: Boolean) : Interceptor { @Throws(IOException::class) override fun intercept(chain: Interceptor.Chain): Response { val realChain = chain as RealInterceptorChain val exchange = realChain.exchange!! val request = realChain.request val requestBody = request.body val sentRequestMillis = System.currentTimeMillis()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt
import okio.BufferedSource import okio.Source @JvmField internal val EMPTY_HEADERS: Headers = commonEmptyHeaders @JvmField internal val EMPTY_REQUEST: RequestBody = commonEmptyRequestBody @JvmField internal val EMPTY_RESPONSE: ResponseBody = commonEmptyResponse /** GMT and UTC are equivalent for our purposes. */ @JvmField internal val UTC: TimeZone = TimeZone.getTimeZone("GMT")!! internal fun threadFactory(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 10.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HuffmanTest.kt
fun roundTripForRequestAndResponse() { val s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" for (i in s.indices) { assertRoundTrip(s.substring(0, i).encodeUtf8()) } val random = Random(123456789L) val buf = ByteArray(4096) random.nextBytes(buf) assertRoundTrip(buf.toByteString()) } private fun assertRoundTrip(data: ByteString) { val encodeBuffer = Buffer()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Jan 04 05:32:07 UTC 2024 - 1.8K bytes - Viewed (0)