- Sort Score
- Num 10 results
- Language All
Results 261 - 270 of 1,222 for rval (0.02 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt
import okio.ForwardingSink import okio.buffer class UploadProgress { companion object { private const val IMGUR_CLIENT_ID = "9199fdef135c122" private val MEDIA_TYPE_PNG = "image/png".toMediaType() } private val client = OkHttpClient() @Throws(Exception::class) fun run() { val progressListener = object : ProgressListener { private var firstUpdate = trueCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 17:01:12 GMT 2025 - 3.8K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt
*/ private val enforceOrder: Boolean = true, ) { private val eventListenerAdapter = EventListenerAdapter() .apply { listeners += ::logEvent } val eventListener: EventListener get() = eventListenerAdapter /** Events that haven't yet been removed. */ val eventSequence: Deque<CallEvent> = ConcurrentLinkedDeque()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 4.5K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt
* of its component streams are closed. This class takes advantage of that. */ internal class MockWebServerSocket( val javaNetSocket: Socket, ) : Closeable, BufferedSocket { private val delegate = javaNetSocket.asOkioSocket() private val closedLatch = CountDownLatch(2) override val source: BufferedSource = object : ForwardingSource(delegate.source) { private var closed = false
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 3.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt
private var runCallCount = 0 /** Queues with tasks that are currently executing their [TaskQueue.activeTask]. */ private val busyQueues = mutableListOf<TaskQueue>() /** Queues not in [busyQueues] that have non-empty [TaskQueue.futureTasks]. */ private val readyQueues = mutableListOf<TaskQueue>() private val runnable: Runnable = object : Runnable { override fun run() { var task: Task = withLock {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 11:30:11 GMT 2025 - 10.4K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/RecordedRequestFactory.kt
version = parts[2], ) } internal class RequestLine( val method: String, val target: String, val version: String, ) { override fun toString() = "$method $target $version" } internal val DEFAULT_REQUEST_LINE_HTTP_1 = RequestLine( method = "GET", target = "/", version = "HTTP/1.1", ) internal val DEFAULT_REQUEST_LINE_HTTP_2 = RequestLine( method = "GET",
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Jul 29 12:43:16 GMT 2025 - 3.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeJvmTest.kt
} } @Test fun testIllegalCharsetName() { val mediaType = parse("text/plain; charset=\"!@#$%^&*()\"") assertNull(mediaType.charsetName()) } @Test fun testUnsupportedCharset() { val mediaType = parse("text/plain; charset=utf-wtf") assertNull(mediaType.charsetName()) } @Test fun testCharsetNameIsDoubleQuotedAndSingleQuoted() { val mediaType = parse("text/plain;charset=\"'utf-8'\"")
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepositoryLifecycle.kt
import java.io.File class BinaryCompatibilityRepositorySetupRule(private val params: Map<String, Any>) : SetupRule { companion object { const val REPOSITORY_CONTEXT_KEY = "binaryCompatibilityRepository" } /** * Each param is a `Set<String>`. */ object Params { const val sourceRoots = "sourceRoots" const val sourceCompilationClasspath = "sourceCompilationClasspath" }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 2.2K bytes - Click Count (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt
} else { assertThat(event.t).isNull() } } internal data class Open( val eventSource: EventSource, val response: Response, ) internal data class Failure( val t: Throwable?, val response: Response?, val message: String?, ) internal object ClosedCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 11:32:52 GMT 2025 - 3.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTagsTest.kt
@JvmField @RegisterExtension val clientTestRule = OkHttpClientTestRule() private var client = clientTestRule.newClient() @Test fun tagsSeededFromRequest() { val request = Request .Builder() .url("https://square.com/".toHttpUrl()) .tag(Integer::class, 5 as Integer) .tag(String::class, "hello") .build() val call = client.newCall(request)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Oct 26 14:54:46 GMT 2025 - 2.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/projects/FunctionalTestProject.kt
import model.Stage import model.TestCoverage const val DEFAULT_FUNCTIONAL_TEST_BUCKET_SIZE = 50 const val DEFAULT_LINUX_FUNCTIONAL_TEST_BUCKET_SIZE = 20 const val DEFAULT_MACOS_FUNCTIONAL_TEST_BUCKET_SIZE = 20 class FunctionalTestProject( val model: CIBuildModel, functionalTestBucketProvider: FunctionalTestBucketProvider, val testCoverage: TestCoverage, val stage: Stage, ) : Project({
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Feb 12 09:12:03 GMT 2025 - 876 bytes - Click Count (0)