- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for toInt (0.03 sec)
-
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
val request = server.takeRequest() assertThat(request.requestLine).isEqualTo("POST /foo HTTP/1.1") assertArrayEquals(postBytes, request.body.readByteArray()) assertThat(request.headers["Content-Length"]!!.toInt()).isEqualTo(postBytes.size) } @ParameterizedTest @ArgumentsSource(ProtocolParamProvider::class) fun closeAfterFlush( protocol: Protocol, mockWebServer: MockWebServer, ) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
internal var readTimeout = 10_000 internal var writeTimeout = 10_000 internal var pingInterval = 0 internal var webSocketCloseTimeout = RealWebSocket.CANCEL_AFTER_CLOSE_MILLIS.toInt() internal var minWebSocketMessageToCompress = RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE internal var routeDatabase: RouteDatabase? = null internal var taskRunner: TaskRunner? = null
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:21:33 UTC 2024 - 52K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
): Int { return try { // Canonicalize the port string to skip '\n' etc. val portString = input.canonicalize(pos = pos, limit = limit, encodeSet = "") val i = portString.toInt() if (i in 1..65535) i else -1 } catch (_: NumberFormatException) { -1 // Invalid port. } } } companion object {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 63.5K bytes - Viewed (0)