- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for 504 (0.14 sec)
-
okhttp/src/main/kotlin/okhttp3/CacheControl.kt
/** Don't store the server's response in any cache. */ fun noStore() = commonNoStore() /** * Only accept the response if it is in the cache. If the response isn't cached, a `504 * Unsatisfiable Request` response will be returned. */ fun onlyIfCached() = commonOnlyIfCached() /** Don't accept a transformed response. */ fun noTransform() = commonNoTransform()
Plain Text - Registered: Fri Mar 22 11:42:09 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 9.8K bytes - Viewed (0) -
tests/test_include_router_defaults_overrides.py
router2_default = APIRouter() router4_override = APIRouter( prefix="/level4", tags=["level4a", "level4b"], dependencies=[Depends(dep4)], responses={ 404: {"description": "Client error level 4"}, 504: {"description": "Server error level 4"}, }, default_response_class=ResponseLevel4, callbacks=callback_router4.routes, deprecated=True, ) router4_default = APIRouter() @app.get(
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 358.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpStatusCodes.kt
/** `502 Bad Gateway` (HTTP/1.0 - RFC 7231) */ const val HTTP_BAD_GATEWAY = 502 /** `503 Service Unavailable` (HTTP/1.0 - RFC 7231) */ const val HTTP_UNAVAILABLE = 503 /** `504 Gateway Timeout` (HTTP/1.1 - RFC 7231) */ const val HTTP_GATEWAY_TIMEOUT = 504 /** `505 HTTP Version Not Supported` (HTTP/1.1 - RFC 7231) */ const val HTTP_HTTP_VERSION_NOT_SUPPORTED = 505
Plain Text - Registered: Fri Mar 22 11:42:09 GMT 2024 - Last Modified: Sun Jan 07 16:05:34 GMT 2024 - 8.1K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
} private fun getCacheOnlyResponse(request: Request): Response? { if (client.cache != null) { try { // Use the cache without hitting the network first // 504 code indicates that the Cache is stale val onlyIfCached = CacheControl.Builder() .onlyIfCached() .build() var cacheUrl = request.url
Plain Text - Registered: Fri Mar 22 11:42:09 GMT 2024 - Last Modified: Fri Mar 22 07:09:21 GMT 2024 - 9.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cache.kt
* .onlyIfCached() * .build()) * .url("http://publicobject.com/helloworld.txt") * .build(); * Response forceCacheResponse = client.newCall(request).execute(); * if (forceCacheResponse.code() != 504) { * // The resource was cached! Show it. * } else { * // The resource was not cached. * } * ``` * * This technique works even better in situations where a stale response is better than no response.
Plain Text - Registered: Fri Mar 22 11:42:09 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 26.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
assertCached(false, 417) assertCached(false, 418) assertCached(false, 500) assertCached(true, 501) assertCached(false, 502) assertCached(false, 503) assertCached(false, 504) assertCached(false, 505) assertCached(false, 506) } @Test fun responseCachingWith1xxInformationalResponse() { assertSubsequentResponseCached(102, 200)
Plain Text - Registered: Fri Mar 22 11:42:09 GMT 2024 - Last Modified: Fri Mar 22 07:09:21 GMT 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/EventListenerTest.kt
Request.Builder() .url(server.url("/")) .cacheControl(CacheControl.FORCE_CACHE) .build(), ) val response = call.execute() assertThat(response.code).isEqualTo(504) response.close() assertThat(listener.recordedEventTypes()) .containsExactly("CallStart", "SatisfactionFailure", "CallEnd") } @Test fun cacheHit() { enableCache()
Plain Text - Registered: Fri Mar 22 11:42:09 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 56.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
} @Test fun onlyIfCachedReturns504WhenNotCached() { executeSynchronously("/", "Cache-Control", "only-if-cached") .assertCode(504) .assertBody("") .assertNoNetworkResponse() .assertNoCacheResponse() } @Test fun networkDropsOnConditionalGet() { client = client.newBuilder()
Plain Text - Registered: Fri Mar 22 11:42:09 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 142.5K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback.go
func stack496() { var buf [496]byte; use(buf[:]); C.callGoStackCheck() } func stack500() { var buf [500]byte; use(buf[:]); C.callGoStackCheck() } func stack504() { var buf [504]byte; use(buf[:]); C.callGoStackCheck() } func stack508() { var buf [508]byte; use(buf[:]); C.callGoStackCheck() } func stack512() { var buf [512]byte; use(buf[:]); C.callGoStackCheck() }
Go - Registered: Tue Mar 26 11:13:08 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 111.5K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.8.md
* Add possibility to use multiple floatingip pools in openstack loadbalancer ([#49697](https://github.com/kubernetes/kubernetes/pull/49697), [@zetaab](https://github.com/zetaab)) * The 504 timeout error was returning a JSON error body that indicated it was a 500. The body contents now correctly report a 500 error. ([#49678](https://github.com/kubernetes/kubernetes/pull/49678), [@smarterclayton](https://github.com/smarterclayton))
Plain Text - Registered: Fri Mar 22 09:05:09 GMT 2024 - Last Modified: Tue Feb 20 15:45:02 GMT 2024 - 312.2K bytes - Viewed (1)