- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for Walters (0.17 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
import okio.Closeable import okio.FileNotFoundException import okio.FileSystem import okio.IOException import okio.Options import okio.Path import okio.use // TODO: migrate callers to [Regex.matchAt] when that API is not experimental. internal fun Regex.matchAtPolyfill( input: CharSequence, index: Int, ): MatchResult? { val candidate = find(input, index) ?: return null
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
@Test fun networkInterceptorThrowsRuntimeExceptionSynchronous() { interceptorThrowsRuntimeExceptionSynchronous(true) } /** * When an interceptor throws an unexpected exception, synchronous callers can catch it and deal * with it. */ private fun interceptorThrowsRuntimeExceptionSynchronous(network: Boolean) { addInterceptor(network) { chain: Interceptor.Chain? -> throw RuntimeException("boom!") }
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/main/kotlin/okhttp3/HttpUrl.kt
val queryEnd = url.delimiterOffset('#', queryStart, url.length) return url.substring(queryStart, queryEnd) } /** * This URL's query, like `"abc"` for `http://host/?abc`. Most callers should prefer * [queryParameterName] and [queryParameterValue] because these methods offer direct access to * individual query parameters. * * | URL | `query()` |
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 63.5K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt
* certificate pin checks. */ fun sameHostAndPort(url: HttpUrl): Boolean /** * A plan holds either an immediately-usable connection, or one that must be connected first. * These steps are split so callers can call [connectTcp] on a background thread if attempting * multiple plans concurrently. */ interface Plan { val isReady: Boolean fun connectTcp(): ConnectResult
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 4.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
* value. */ @get:JvmName("sameSite") val sameSite: String?, ) { /** * Returns true if this cookie should be included on a request to [url]. In addition to this * check callers should also confirm that this cookie has not expired. */ fun matches(url: HttpUrl): Boolean { val domainMatch = if (hostOnly) { url.host == domain } else {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:12:05 GMT 2024 - 23.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt
internal fun writeHeaders( streamId: Int, outFinished: Boolean, alternating: List<Header>, ) { writer.headers(outFinished, streamId, alternating) } /** * Callers of this method are not thread safe, and sometimes on application threads. Most often, * this method will be called to send a buffer worth of data to the peer. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 32.6K bytes - Viewed (0) -
native-image-tests/src/main/kotlin/okhttp3/RunTests.kt
val request: LauncherDiscoveryRequest = buildRequest(selectors) val testEngine = buildTestEngine() val filters = listOf<PostDiscoveryFilter>() val discoveryOrchestrator = EngineDiscoveryOrchestrator(listOf(testEngine), filters) val discovered = discoveryOrchestrator.discover(request, EngineDiscoveryOrchestrator.Phase.EXECUTION)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.3K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
import okio.Buffer import okio.BufferedSink import okio.BufferedSource import okio.Sink import okio.Timeout import okio.buffer import okio.sink import okio.source /** * A scriptable web server. Callers supply canned responses and the server replays them upon request * in sequence. */ @ExperimentalOkHttpApi class MockWebServer : Closeable { private val taskRunnerBackend = TaskRunner.RealBackend(
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/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
* * This class is tolerant of some I/O errors. If files are missing from the filesystem, the * corresponding entries will be dropped from the cache. If an error occurs while writing a cache * value, the edit will fail silently. Callers should handle other problems by catching * `IOException` and responding appropriately. * * @constructor Create a cache which will reside in [directory]. This cache is lazily initialized on
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 34.7K bytes - Viewed (0) -
okhttp-urlconnection/src/main/kotlin/okhttp3/JavaNetCookieJar.kt
* A cookie jar that delegates to a [java.net.CookieHandler]. * * This implementation delegates everything to [okhttp3.java.net.cookiejar.JavaNetCookieJar], which * conforms to the package-naming limitations of JPMS. * * Callers should prefer to use [okhttp3.java.net.cookiejar.JavaNetCookieJar] directly. */ class JavaNetCookieJar private constructor( delegate: okhttp3.java.net.cookiejar.JavaNetCookieJar, ) : CookieJar by delegate {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.3K bytes - Viewed (0)