- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 61 for Blog (0.13 sec)
-
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
} fun assertNoMoreLogs() { assertThat(logs.size, "More messages remain: ${logs.subList(index, logs.size)}") .isEqualTo(index) } override fun log(message: String) { logs.add(message) } } companion object { private val PLAIN = "text/plain; charset=utf-8".toMediaType() }
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/main/kotlin/okhttp3/internal/platform/android/AndroidLog.kt
val logger = Logger.getLogger(logger) if (configuredLoggers.add(logger)) { logger.useParentHandlers = false // log based on levels at startup to avoid logging each frame logger.level = when { Log.isLoggable(tag, Log.DEBUG) -> Level.FINE Log.isLoggable(tag, Log.INFO) -> Level.INFO else -> Level.WARNING } logger.addHandler(AndroidLogHandler) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.9K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/okio/LoggingFilesystem.kt
fun log(line: String) { println(line) } override fun appendingSink( file: Path, mustExist: Boolean, ): Sink { log("appendingSink($file)") return super.appendingSink(file, mustExist) } override fun atomicMove( source: Path, target: Path, ) { log("atomicMove($source, $target)")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.7K bytes - Viewed (0) -
okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt
* See the License for the specific language governing permissions and * limitations under the License. * */ package okhttp3.android import android.util.Log import assertk.assertThat import assertk.assertions.containsExactly import assertk.assertions.containsOnly import assertk.assertions.isNull import java.net.UnknownHostException import okhttp3.ConnectionSpec
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 11:07:32 GMT 2024 - 3.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocksProxy.kt
service(socket) } } catch (e: SocketException) { logger.info("$threadName done accepting connections: ${e.message}") } catch (e: IOException) { logger.log(Level.WARNING, "$threadName failed unexpectedly", e) } finally { for (socket in openSockets) { socket.closeQuietly() } Thread.currentThread().name = "SocksProxy" } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 7.7K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp.android.test.alpn import android.os.Build import android.util.Log import assertk.assertThat import assertk.assertions.isEqualTo import javax.net.ssl.SSLSocket import javax.net.ssl.SSLSocketFactory import okhttp3.Call import okhttp3.Connection import okhttp3.ConnectionSpec
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/SpecificHostSocketFactory.kt
timeout: Int, ) { val requested = (endpoint as InetSocketAddress) val inetSocketAddress = hostMapping[requested.address] ?: defaultAddress ?: requested Platform.get().log("Socket connection to: $inetSocketAddress was: $requested") super.connect(inetSocketAddress, timeout) } } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.7K bytes - Viewed (0) -
docs/features/interceptors.md
Server: nginx/1.4.6 (Ubuntu) Content-Type: text/plain Content-Length: 1759 Connection: keep-alive ``` We can see that we were redirected because `response.request().url()` is different from `request.url()`. The two log statements log two different URLs. ### Network Interceptors Registering a network interceptor is quite similar. Call `addNetworkInterceptor()` instead of `addInterceptor()`: ```java
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 8.1K bytes - Viewed (0) -
CHANGELOG.md
Change Log ========== ## Version 4.x See [4.x Change log](https://square.github.io/okhttp/changelogs/changelog_4x/) for the stable version changelogs. ## Version 5.0.0-alpha.14 _2024-04-17_ * Breaking: Move coroutines extensions to okhttp3.coroutines. Previously this artifact shared the `okhttp3` package name with our core module, which is incompatible with the Java Platform Module System.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:31:39 GMT 2024 - 21.4K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
) { logWithTime("cacheConditionalHit: $cachedResponse") } private fun logWithTime(message: String) { val timeMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs) logger.log("[$timeMs ms] $message") } open class Factory @JvmOverloads constructor( private val logger: HttpLoggingInterceptor.Logger = HttpLoggingInterceptor.Logger.DEFAULT,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 11:07:32 GMT 2024 - 5.4K bytes - Viewed (0)