- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for Hevery (0.25 sec)
-
docs/changelogs/changelog_4x.md
`okhttp-tls` module. * Upgrade: [Kotlin 1.3.71][kotlin_1_3_71]. ## Version 4.5.0 _2020-04-06_ **This release fixes a severe bug where OkHttp incorrectly detected and recovered from unhealthy connections.** Stale or canceled connections were incorrectly attempted when they shouldn't have
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-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
assertThat(certificate.getSubjectX500Principal().name) .isEqualTo("CN=cash.app,OU=engineering") } @Test fun decodeRsa512() { // The certificate + private key below was generated with OpenSSL. Never generate certificates // with MD5 or 512-bit RSA; that's insecure! // // openssl req \ // -x509 \ // -md5 \ // -nodes \ // -days 1 \ // -newkey rsa:512 \
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 22.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Headers.kt
* intended to be used as a metric: smaller headers are more efficient to encode and transmit. */ fun byteCount(): Long { // Each header name has 2 bytes of overhead for ': ' and every header value has 2 bytes of // overhead for '\r\n'. var result = (namesAndValues.size * 2).toLong() for (i in 0 until namesAndValues.size) { result += namesAndValues[i].length.toLong() }
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) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
fun streamHandler(streamHandler: StreamHandler) = apply { this.streamHandler = streamHandler } /** * Sets the response body to [body], chunked every [maxChunkSize] bytes. */ fun chunkedBody( body: Buffer, maxChunkSize: Int, ) = apply { removeHeader("Content-Length") headers.add(CHUNKED_BODY_HEADER)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 13.3K bytes - Viewed (1) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
fail<Any>() } catch (expected: IOException) { } server.url("/b").toUrl().openConnection().getInputStream() // Should succeed. } /** * Throttle the request body by sleeping 500ms after every 3 bytes. With a 6-byte request, this * should yield one sleep for a total delay of 500ms. */ @Test fun throttleRequest() { assumeNotWindows() server.enqueue( MockResponse()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 21.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Response.kt
HTTP_PROXY_AUTH -> "Proxy-Authenticate" else -> return emptyList() }, ) } /** * Returns the cache control directives for this response. This is never null, even if this * response contains no `Cache-Control` header. */ @get:JvmName("cacheControl") val cacheControl: CacheControl get() = commonCacheControl @JvmName("-deprecated_cacheControl")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 15.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt
) : RoutePlanner.Plan, ExchangeCodec.Carrier { /** True if this connect was canceled; typically because it lost a race. */ @Volatile private var canceled = false // These properties are initialized by connect() and never reassigned. /** The low-level TCP socket. */ private var rawSocket: Socket? = null /** * The application layer socket. Either an [SSLSocket] layered over [rawSocket], or [rawSocket]
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 18.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt
* https://github.com/square/okhttp/issues/5770 */ @Test fun proxySelectorNotCalledForNullHost() { // The string '>' is okay in a hostname in HttpUrl, which does very light hostname validation. // It is not okay in URI, and so it's stripped and we get a URI with a null host. val bogusHostname = ">" val address = factory.newAddress( uriHost = bogusHostname,
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-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
keyAlgorithm = "EC" keySize = 256 } /** * Configure the certificate to generate a 2048-bit RSA key, which provides about 112 bits of * security. RSA keys are interoperable with very old clients that don't support ECDSA. */ fun rsa2048() = apply { keyAlgorithm = "RSA" keySize = 2048 } fun build(): HeldCertificate {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 21.6K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
assertThat(server.receivedPingCount()).isEqualTo(0) assertThat(server.receivedPongCount()).isEqualTo(0) closeWebSockets(webSocket, server) } /** * Configure the websocket to send pings every 500 ms. Artificially prevent the server from * responding to pings. The client should give up when attempting to send its 2nd ping, at about * 1000 ms. */ @Test fun unacknowledgedPingFailsConnection() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 35.2K bytes - Viewed (1)