- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for responseDone (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt
} } if (responseDone) { if (e != null) { call.eventListener.responseFailed(call, e) } else { call.eventListener.responseBodyEnd(call, bytesRead) } } return call.messageDone( exchange = this, requestDone = requestDone && !isSocket, responseDone = responseDone && !isSocket, socketSinkDone = requestDone && isSocket,Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 10.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt
var callDone = false withLock { if ( requestDone && requestBodyOpen || responseDone && responseBodyOpen || socketSinkDone && socketSinkOpen || socketSourceDone && socketSourceOpen ) { if (requestDone) requestBodyOpen = false if (responseDone) responseBodyOpen = false if (socketSinkDone) socketSinkOpen = falseCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 19.7K bytes - Click Count (0) -
internal/dsync/lock-args.go
Quorum *int `msgp:"omitempty"` } // ResponseCode is the response code for a locking request. type ResponseCode uint8 // Response codes for a locking request. const ( RespOK ResponseCode = iota RespLockConflict RespLockNotInitialized RespLockNotFound RespErr ) // LockResp is a locking request response. type LockResp struct { Code ResponseCode Err string
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Jul 24 10:24:01 GMT 2024 - 1.8K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/CustomDispatcherTest.kt
} private fun buildRequestThread( path: String, responseCode: AtomicInteger, ): Thread = Thread { val url = mockWebServer.url(path).toUrl() val conn: HttpURLConnection try { conn = url.openConnection() as HttpURLConnection responseCode.set(conn.responseCode) // Force the connection to hit the "server". } catch (ignored: IOException) { } }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 3.2K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt
// HEAD requests never yield a body regardless of the response headers. if (request.method == "HEAD") { return false } val responseCode = code if ((responseCode < HTTP_CONTINUE || responseCode >= 200) && responseCode != HTTP_NO_CONTENT && responseCode != HTTP_NOT_MODIFIED ) { return true } // If the Content-Length or Transfer-Encoding headers disagree with the response code, the
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 7.2K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt
buf.readShort() // query id val flags = buf.readShort().toInt() and 0xffff require(flags shr 15 != 0) { "not a response" } val responseCode = flags and 0xf if (responseCode == NXDOMAIN) { throw UnknownHostException("$hostname: NXDOMAIN") } else if (responseCode == SERVFAIL) { throw UnknownHostException("$hostname: SERVFAIL") } val questionCount = buf.readShort().toInt() and 0xffff
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.9K bytes - Click Count (0) -
internal/dsync/lock-args_gen.go
return } // DecodeMsg implements msgp.Decodable func (z *ResponseCode) DecodeMsg(dc *msgp.Reader) (err error) { { var zb0001 uint8 zb0001, err = dc.ReadUint8() if err != nil { err = msgp.WrapError(err) return } (*z) = ResponseCode(zb0001) } return } // EncodeMsg implements msgp.Encodable func (z ResponseCode) EncodeMsg(en *msgp.Writer) (err error) { err = en.WriteUint8(uint8(z))
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 10.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
if (HttpMethod.permitsRequestBody(method)) { val responseCode = userResponse.code val maintainBody = HttpMethod.redirectsWithBody(method) || responseCode == HTTP_PERM_REDIRECT || responseCode == HTTP_TEMP_REDIRECT if (HttpMethod.redirectsToGet(method) && responseCode != HTTP_PERM_REDIRECT && responseCode != HTTP_TEMP_REDIRECT) { requestBuilder.method("GET", null)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue May 27 14:58:02 GMT 2025 - 12.4K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
new ByteArrayInputStream(new byte[0])); // Act - Trigger handshake int responseCode = ntlmConnection.getResponseCode(); // Assert - Verify we got the 401 response (simplified test) assertEquals(HTTP_UNAUTHORIZED, responseCode); // In a real scenario, the connection would reconnect and send Type1/Type3 messages
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.6K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
val url = server.url("/").toUrl() val connection = url.openConnection() as HttpURLConnection assertThat(connection.responseCode).isEqualTo(HttpURLConnection.HTTP_OK) val refusedConnection = url.openConnection() as HttpURLConnection assertFailsWith<ConnectException> { refusedConnection.responseCode }.also { expected -> assertThat(expected.message!!).contains("refused") } } @Test
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Aug 03 22:38:00 GMT 2025 - 28K bytes - Click Count (0)