- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for Selent (0.18 sec)
-
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
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-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
} private fun bodyIsStreaming(response: Response): Boolean { val contentType = response.body.contentType() return contentType != null && contentType.type == "text" && contentType.subtype == "event-stream" } companion object
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 11.2K bytes - Viewed (1) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
setLevel(Level.BODY) server.enqueue( MockResponse.Builder() .setHeader("Content-Type", "text/event-stream") .chunkedBody( """ |event: add |data: 73857293 | |event: remove |data: 2153 | |event: add |data: 113411 | | """.trimMargin(), 8, )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 37.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt
proxySelector.assertRequests() // No proxy selector requests! } @Test fun proxySelectorReturnsNull() { val nullProxySelector: ProxySelector = object : ProxySelector() { override fun select(uri: URI): List<Proxy>? { assertThat(uri.host).isEqualTo(uriHost) return null } override fun connectFailed( uri: URI, socketAddress: SocketAddress,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Mar 06 17:33:38 GMT 2024 - 20.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt
vararg args: Any, ): String { return String.format(Locale.US, format, *args) } @Throws(IOException::class) internal fun BufferedSource.readBomAsCharset(default: Charset): Charset { return when (select(UNICODE_BOMS)) { 0 -> UTF_8 1 -> UTF_16BE 2 -> UTF_16LE 3 -> UTF_32BE 4 -> UTF_32LE -1 -> default else -> throw AssertionError() } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
* ``` */ private val subjectAlternativeName: BasicDerAdapter<List<Pair<DerAdapter<*>, Any?>>> = generalName.asSequenceOf() /** * This uses the preceding extension ID to select which adapter to use for the extension value * that follows. */ private val extensionValue: BasicDerAdapter<Any?> = Adapters.usingTypeHint { typeHint -> when (typeHint) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.6K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
if (existingRouteSelection != null && existingRouteSelection.hasNext()) { return planConnectToRoute(existingRouteSelection.next()) } // Decide which proxy to use, if any. This may block in ProxySelector.select(). var newRouteSelector = routeSelector if (newRouteSelector == null) { newRouteSelector = RouteSelector( address = address, routeDatabase = routeDatabase,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 12K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
/** * @param forObsoleteRfc2965 true to include a leading `.` on the domain pattern. This is * necessary for `example.com` to match `www.example.com` under RFC 2965. This extra dot is * ignored by more recent specifications. */ internal fun toString(forObsoleteRfc2965: Boolean): String { return buildString { append(name) append('=') append(value) if (persistent) {
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/test/java/okhttp3/OkHttpClientTest.kt
} @Test fun sharesRouteDatabase() { val client = OkHttpClient.Builder() .build() val proxySelector: ProxySelector = object : ProxySelector() { override fun select(uri: URI): List<Proxy> = listOf() override fun connectFailed( uri: URI, socketAddress: SocketAddress, e: IOException, ) {} }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 13.2K bytes - Viewed (0) -
.github/workflows/build.yml
- name: Run Checks run: ./gradlew test -Dtest.java.version=11 testopenjdk8: runs-on: ubuntu-latest if: github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'jdkversions') || contains(github.event.pull_request.labels.*.name, 'renovate') steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0
Others - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 01:51:50 GMT 2024 - 17.2K bytes - Viewed (0)