- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 882 for val1 (0.03 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt
class TaskQueue internal constructor( internal val taskRunner: TaskRunner, internal val name: String, ) { val lock: ReentrantLock = ReentrantLock() internal var shutdown = false /** This queue's currently-executing task, or null if none is currently executing. */ internal var activeTask: Task? = null /** Scheduled tasks ordered by [Task.nextExecuteNanoTime]. */ internal val futureTasks = mutableListOf<Task>()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt
import okhttp3.MediaType.Companion.toMediaType import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody import okio.BufferedSink class PostStreaming { private val client = OkHttpClient() fun run() { val requestBody = object : RequestBody() { override fun contentType() = MEDIA_TYPE_MARKDOWN override fun writeTo(sink: BufferedSink) { sink.writeUtf8("Numbers\n")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportParameter.kt
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 1.1K bytes - Viewed (0) -
okhttp-dnsoverhttps/README.md
``` ### Usage ``` val appCache = Cache(File("cacheDir", "okhttpcache"), 10 * 1024 * 1024) val bootstrapClient = OkHttpClient.Builder().cache(appCache).build() val dns = DnsOverHttps.Builder().client(bootstrapClient) .url("https://dns.google/dns-query".toHttpUrl()) .bootstrapDnsHosts(InetAddress.getByName("8.8.4.4"), InetAddress.getByName("8.8.8.8")) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 740 bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
.build(), ) server.enqueue( MockResponse(body = "A"), ) val startNanos = System.nanoTime() val connection1 = getResponse(newRequest("/")) val inputStream = connection1.body.byteStream() inputStream.close() val elapsedNanos = System.nanoTime() - startNanos val elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0) -
.teamcity/src/main/kotlin/promotion/BasePublishGradleDistribution.kt
import vcsroots.gradlePromotionMaster abstract class BasePublishGradleDistribution( // The branch to be promoted val promotedBranch: String, val prepTask: String?, val triggerName: String, val gitUserName: String = "bot-teamcity", val gitUserEmail: String = "******@****.***", val extraParameters: String = "", vcsRootId: String = gradlePromotionMaster, cleanCheckout: Boolean = true
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Feb 07 17:05:02 UTC 2024 - 3.1K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt
fun buildIdnaMappingTableData(table: SimpleIdnaMappingTable): IdnaMappingTableData { val simplified = mergeAdjacentRanges(table.mappings) val withoutSectionSpans = withoutSectionSpans(simplified) val sections = sections(withoutSectionSpans) val rangesBuffer = Buffer() val mappingsBuffer = StringBuilder() val sectionIndexBuffer = Buffer() var previousMappedRanges: List<MappedRange>? = null
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.2K bytes - Viewed (0) -
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/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/src/test/java/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 testFailsIfTrailersNotSet() { val response = newResponse("".toResponseBody()) { // All live paths (Http1, Http2) in OkHttp do this
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.1K bytes - Viewed (0)