- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 262 for esbuild (0.19 sec)
-
okhttp/src/test/java/okhttp3/InterceptorTest.kt
.body("abc".toResponseBody("text/plain; charset=utf-8".toMediaType())) .build() } client = client.newBuilder() .addNetworkInterceptor(interceptor) .build() val request = Request.Builder() .url(server.url("/")) .build() assertFailsWith<IllegalStateException> { client.newCall(request).execute()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 27.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
) webServer.enqueue( MockResponse.Builder() .webSocketUpgrade(serverListener) .build(), ) val webSocket: WebSocket = newWebSocket() clientListener.assertOpen() val server = serverListener.assertOpen() webSocket.send("abc") serverListener.assertTextMessage("abc") server.send("def") clientListener.assertTextMessage("def")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 35.2K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt
.code(HttpURLConnection.HTTP_MOVED_TEMP) .setHeader("Location", otherServer.url("/")) .build(), ) otherServer.enqueue( MockResponse.Builder() .headersDelay(500, TimeUnit.MILLISECONDS) .build(), ) val request = Request.Builder().url(server.url("/")).build() val call = client.newCall(request) call.timeout().timeout(250, TimeUnit.MILLISECONDS)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocksProxyTest.kt
} @Test fun proxy() { server.enqueue(MockResponse.Builder().body("abc").build()) server.enqueue(MockResponse.Builder().body("def").build()) val client = clientTestRule.newClientBuilder() .proxy(socksProxy.proxy()) .build() val request1 = Request.Builder().url(server.url("/")).build() val response1 = client.newCall(request1).execute()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestTest.kt
val get = Request.Builder().url("http://localhost/api").get().build() assertThat(get.method).isEqualTo("GET") assertThat(get.body).isNull() val head = Request.Builder().url("http://localhost/api").head().build() assertThat(head.method).isEqualTo("HEAD") assertThat(head.body).isNull() val delete = Request.Builder().url("http://localhost/api").delete().build() assertThat(delete.method).isEqualTo("DELETE")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.4K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt
.bootstrapDnsHosts(getByIp("8.8.4.4"), getByIp("8.8.8.8")) .build() } private fun buildGooglePost(bootstrapClient: OkHttpClient): DnsOverHttps { return DnsOverHttps.Builder() .client(bootstrapClient) .url("https://dns.google/dns-query".toHttpUrl()) .bootstrapDnsHosts(getByIp("8.8.4.4"), getByIp("8.8.8.8")) .post(true) .build() }
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) -
okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt
.tlsVersions(*arrayOf<String>()) .build() }.also { expected -> assertThat(expected.message) .isEqualTo("At least one TLS version is required") } } @Test fun noCipherSuites() { assertFailsWith<IllegalArgumentException> { ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .cipherSuites(*arrayOf<CipherSuite>()) .build() }.also { expected ->
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 14.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
.body("A") .bodyDelay(1, TimeUnit.SECONDS) .build(), ) val client1 = client.newBuilder() .readTimeout(Duration.ofSeconds(2)) .build() val call1 = client1 .newCall( Request.Builder() .url(server.url("/")) .build(), ) val client2 = client.newBuilder()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
.addSubjectAlternativeName("localhost") .build() return@lazy HandshakeCertificates.Builder() .addPlatformTrustedCertificates() .heldCertificate(heldCertificate) .addTrustedCertificate(heldCertificate.certificate) .build() } @Before fun init() { assumeTrue("Supported on API 29+", Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) client = OkHttpClient.Builder()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MultipartBodyTest.kt
), "... contents of file2.gif ...".toByteArray(StandardCharsets.UTF_8) .toRequestBody("image/gif".toMediaType()), ) .build(), ) .build() assertThat(body.boundary).isEqualTo("AaB03x") assertThat(body.type).isEqualTo(MultipartBody.FORM) assertThat(body.contentType().toString()).isEqualTo(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.4K bytes - Viewed (0)