- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 30 for type (0.15 sec)
-
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
} private fun dnsResponse(s: String): MockResponse { return MockResponse.Builder() .body(Buffer().write(s.decodeHex())) .addHeader("content-type", "application/dns-message") .addHeader("content-length", s.length / 2) .build() } private fun buildLocalhost( bootstrapClient: OkHttpClient, includeIPv6: Boolean,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 11K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
@Test fun mediaType() { val mediaType: MediaType = "".toMediaType() val defaultCharset: Charset? = mediaType.charset() val charset: Charset? = mediaType.charset(Charsets.UTF_8) val type: String = mediaType.type val subtype: String = mediaType.subtype val parse: MediaType? = "".toMediaTypeOrNull() } @Test fun mockResponse() { var mockResponse: MockResponse = MockResponse()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
assertThat(server.takeRequest().sequenceNumber).isEqualTo(2) } private fun firstFrame( logs: List<String>, type: String, ): String? { for (log in logs) { if (type in log) { return log } } return null } private fun countFrames( logs: List<String>, message: String, ): Int {
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) -
CHANGELOG.md
type declaration was nullable to support rare cases like the body on `Response.cacheResponse`, `Response.networkResponse`, and `Response.priorResponse`. In such cases the body is now non-null, but attempts to read its content will fail. * New: Kotlin-specific APIs for request tags. Kotlin language users can lookup tags with a type parameter only, like `request.tag<MyTagClass>()`.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:31:39 GMT 2024 - 21.4K bytes - Viewed (0) -
okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt
override fun query( hostname: String, callback: AsyncDns.Callback, ) { try { resolver.query( network, hostname, dnsClass.type, DnsResolver.FLAG_EMPTY, executor, null, object : DnsResolver.Callback<List<InetAddress>> { override fun onAnswer( addresses: List<InetAddress>,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 10:07:48 GMT 2024 - 2.8K bytes - Viewed (0) -
okhttp/api/okhttp.api
public final fun url ()Lokhttp3/HttpUrl; } public abstract interface class okhttp3/AsyncDns { public static final field Companion Lokhttp3/AsyncDns$Companion; public static final field TYPE_A I public static final field TYPE_AAAA I public abstract fun query (Ljava/lang/String;Lokhttp3/AsyncDns$Callback;)V } public abstract interface class okhttp3/AsyncDns$Callback {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 70.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
.body("ABCABCABC") .addHeader("Content-Type: text/plain") .addHeader("Last-Modified: " + formatDate(-2, TimeUnit.HOURS)) .addHeader("Expires: " + formatDate(-1, TimeUnit.HOURS)) .build(), ) server.enqueue( MockResponse.Builder() .code(HttpURLConnection.HTTP_NOT_MODIFIED) .addHeader("Content-Type: text/plain") .addHeader("Content-Encoding: gzip")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
throw RuntimeException(e) } } fun toProxyAddress(): Proxy { before() val address = InetSocketAddress(_inetSocketAddress!!.address.hostName, port) return Proxy(Proxy.Type.HTTP, address) } /** * Returns a URL for connecting to this server. * * @param path the request path, such as "/". */ fun url(path: String): HttpUrl { return HttpUrl.Builder()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 37.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
// Verify the peer received what was expected. assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_PING) assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_HEADERS) assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_PING) assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_DATA) assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_RST_STREAM) } @Test fun outgoingWritesAreBatched() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 75.4K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
val failures = ArrayList<Exception>(2) val results = ArrayList<InetAddress>(5) buildRequest(hostname, networkRequests, results, failures, DnsRecordCodec.TYPE_A) if (includeIPv6) { buildRequest(hostname, networkRequests, results, failures, DnsRecordCodec.TYPE_AAAA) } executeRequests(hostname, networkRequests, results, failures) return results.ifEmpty { throwBestFailure(hostname, failures)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Mar 22 07:09:21 GMT 2024 - 9.8K bytes - Viewed (0)