- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for 204 (0.13 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
sink.writeUtf8("<element/>") sink.flush() } } server.enqueue(MockResponse(code = 201)) server.enqueue(MockResponse(code = 204)) server.enqueue(MockResponse(code = 204)) val endpointUrl = server.url("/endpoint") var request = Request .Builder() .url(endpointUrl) .header("Content-Type", "application/xml")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 8.4K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
} } @Test fun testSkipUncompressNoContentResponse() { val response = response("https://httpbin.org/brotli", EMPTY) { header("Content-Encoding", "br") code(204) message("NO CONTENT") } val same = brotliInterceptor.decompress(response) val responseString = same.body.string() assertThat(responseString).isEmpty() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 22 08:12:58 UTC 2025 - 4.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
"close".equals(response.header("Connection"), ignoreCase = true) ) { exchange.noNewExchangesOnConnection() } if ((code == 204 || code == 205) && response.body.contentLength() > 0L) { throw ProtocolException( "HTTP $code had non-zero Content-Length: ${response.body.contentLength()}", ) } return response
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 22:04:11 UTC 2025 - 7.8K bytes - Viewed (0) -
okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt
} } @Test fun testSkipDecompressNoContentResponse() { val response = response("https://example.com/", EMPTY) { header("Content-Encoding", "zstd") code(204) message("NO CONTENT") } val same = zstdInterceptor.decompress(response) val responseString = same.body.string() assertThat(responseString).isEmpty() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 01 06:04:22 UTC 2025 - 4.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt
Header(TARGET_PATH, "/"), Header(TARGET_PATH, "/index.html"), Header(TARGET_SCHEME, "http"), Header(TARGET_SCHEME, "https"), Header(RESPONSE_STATUS, "200"), Header(RESPONSE_STATUS, "204"), Header(RESPONSE_STATUS, "206"), Header(RESPONSE_STATUS, "304"), Header(RESPONSE_STATUS, "400"), Header(RESPONSE_STATUS, "404"), Header(RESPONSE_STATUS, "500"),
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 22.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
} assertEvents( "R0.00, R1.75, R1.26, R0.76, R0.30, R0.20, R0.20, R0.20", // #1 "U0.20", // #2 "U4.00", // #3 "R0.00, R1.75, R1.26, R0.76, R0.30, R0.20, R0.20, R0.20", // #4 "U0.20", // #5 "U1.00", // #6 "R0.00, R0.20, R0.20, R0.20, R0.20, R0.20, R0.20, R0.20"); // #7 } public void testWarmUpWithColdFactor1() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
} assertEvents( "R0.00, R1.75, R1.26, R0.76, R0.30, R0.20, R0.20, R0.20", // #1 "U0.20", // #2 "U4.00", // #3 "R0.00, R1.75, R1.26, R0.76, R0.30, R0.20, R0.20, R0.20", // #4 "U0.20", // #5 "U1.00", // #6 "R0.00, R0.20, R0.20, R0.20, R0.20, R0.20, R0.20, R0.20"); // #7 } public void testWarmUpWithColdFactor1() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
assertThat(response.body.bytes().size).isEqualTo(0) assertThat(response.body.contentLength()).isEqualTo(0) // Content-Length header doesn't exist in a 204 response. assertThat(response.header("content-length")).isNull() assertThat(response.code).isEqualTo(204) val request = server.takeRequest() assertThat(request.requestLine).isEqualTo("GET /foo HTTP/2") } @ParameterizedTest
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
.assertLogMatch(Regex("""<-- END HTTP \(\d+ms, 0-byte body\)""")) .assertNoMoreLogs() } @Test fun bodyGet204() { setLevel(Level.BODY) bodyGetNoBody(204) } @Test fun bodyGet205() { setLevel(Level.BODY) bodyGetNoBody(205) } private fun bodyGetNoBody(code: Int) { server.enqueue( MockResponse .Builder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 37.5K bytes - Viewed (0) -
src/main/webapp/js/admin/jquery-3.7.1.min.js
try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.t...
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Oct 26 01:07:52 UTC 2024 - 85.5K bytes - Viewed (0)