- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for added (0.12 sec)
-
okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
"""Wildcard Assertion Failure: '$rule' A wildcard rule was added with a wildcard that is not in leftmost position! We'll need to change the ${PublicSuffixDatabase::class.java.name} to handle this.""" } check(rule.indexOf(WILDCARD_CHAR, 1) == -1) { """Wildcard Assertion Failure: '$rule' A wildcard rule was added with multiple wildcards! We'll need to change ${PublicSuffixDatabase::class.java.name} to handle this."""
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:24:38 GMT 2024 - 6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt
import okio.IOException import org.junit.jupiter.api.Assertions open class RecordingConnectionListener( /** * An override to ignore the normal order that is enforced. * EventListeners added by Interceptors will not see all events. */ private val enforceOrder: Boolean = true, ) : ConnectionListener() { val eventSequence: Deque<ConnectionEvent> = ConcurrentLinkedDeque()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
readFieldOrNull(context, X509TrustManager::class.java, "trustManager") } catch (e: ClassNotFoundException) { null } catch (e: RuntimeException) { // Throws InaccessibleObjectException (added in JDK9) on JDK 17 due to // JEP 403 Strongly Encapsulate JDK Internals. if (e.javaClass.name != "java.lang.reflect.InaccessibleObjectException") { throw e } null } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 9.8K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt
// If we see a '.', rewind to the beginning of the previous group and parse as IPv4. if (!decodeIpv4Suffix(input, groupOffset, limit, address, b - 2)) return null b += 2 // We rewound two bytes and then added four. break } else { return null // Wrong delimiter. } } // Read a group, one to four hex digits. var value = 0 groupOffset = i while (i < limit) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
chain.proceed( originalRequest.newBuilder() .addHeader("Request-Interceptor", "Android") // 1. Added first. .build(), ) originalResponse.newBuilder() .addHeader("Response-Interceptor", "Donut") // 4. Added last. .build() } addInterceptor(network) { chain: Interceptor.Chain -> val originalRequest = chain.request()
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/Headers.kt
* Set a field with the specified date. If the field is not found, it is added. If the field is * found, the existing values are replaced. */ operator fun set( name: String, value: Date, ) = set(name, value.toHttpDateString()) /** * Set a field with the specified instant. If the field is not found, it is added. If the field * is found, the existing values are replaced. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.5K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
The upcoming Android Studio runs in a JVM but has classes from Android and that confused OkHttp! * Fix: Include the header `Accept: text/event-stream` for SSE calls. This header is not added if the request already contains an `Accept` header. * Fix: Don't crash with a `NullPointerException` if a server sends a close while we're sending a ping. OkHttp had a race condition bug.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt
namesAndValues.removeAt(i) // value i -= 2 } i += 2 } } /** * Set a field with the specified value. If the field is not found, it is added. If the field is * found, the existing values are replaced. */ internal fun Headers.Builder.commonSet( name: String, value: String, ) = apply { headersCheckName(name)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CertificateChainCleanerTest.kt
.build() val certB = HeldCertificate.Builder() .serialNumber(3L) .signedBy(certA) .build() val cleaner = get(root.certificate) // Root is added! assertThat(cleaner.clean(list(certB, certA), "hostname")).isEqualTo( list(certB, certA, root), ) } @Test fun unorderedChainOfCertificatesWithRoot() { val root =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 9.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt
) : ExchangeFinder { private val connectDelayNanos = TimeUnit.MILLISECONDS.toNanos(250L) private var nextTcpConnectAtNanos = Long.MIN_VALUE /** * Plans currently being connected, and that will later be added to [connectResults]. This is * mutated by the call thread only. If is accessed by background connect threads. */ private val tcpConnectsInFlight = CopyOnWriteArrayList<Plan>() /**
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.8K bytes - Viewed (0)