- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 21 for ETAG (0.02 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheStrategy.kt
/** * Extension header set by OkHttp specifying the timestamp when the cached HTTP response was * first received. */ private var receivedResponseMillis = 0L /** Etag of the cached response. */ private var etag: String? = null /** Age of the cached response. */ private var ageSeconds = -1 /** * Returns true if computeFreshnessLifetime used a heuristic. If we used a heuristic to serve aCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/HttpHeadersTest.java
// Special case some of the weird HTTP Header names... ImmutableBiMap<String, String> specialCases = ImmutableBiMap.<String, String>builder() .put("CDN_LOOP", "CDN-Loop") .put("ETAG", "ETag") .put("SOURCE_MAP", "SourceMap") .put("SEC_CH_UA_WOW64", "Sec-CH-UA-WoW64") .put("SEC_WEBSOCKET_ACCEPT", "Sec-WebSocket-Accept")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 20:10:09 GMT 2026 - 4.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
assertThat(invalidate.body.string()).isEqualTo("") assertThat(get(url).body.string()).isEqualTo("C") } @Test fun etag() { val conditionalRequest = assertConditionallyCached( MockResponse .Builder() .addHeader("ETag: v1") .build(), ) assertThat(conditionalRequest.headers["If-None-Match"]).isEqualTo("v1") }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 121K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
postBodyRetransmittedOnFailureRecovery() } @Test fun cacheHit() { server.enqueue( MockResponse( headers = headersOf( "ETag", "v1", "Cache-Control", "max-age=60", "Vary", "Accept-Charset", ), body = "A", ), ) client =
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
android/guava/src/com/google/common/net/HttpHeaders.java
* * @since 28.2 */ public static final String CROSS_ORIGIN_OPENER_POLICY = "Cross-Origin-Opener-Policy"; /** The HTTP {@code ETag} header field name. */ public static final String ETAG = "ETag"; /** The HTTP {@code Expires} header field name. */ public static final String EXPIRES = "Expires"; /** The HTTP {@code Last-Modified} header field name. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 24 14:36:23 GMT 2026 - 35.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 70.7K bytes - Click Count (0) -
docs/en/docs/advanced/custom-response.md
* `filename` - If set, this will be included in the response `Content-Disposition`. File responses will include appropriate `Content-Length`, `Last-Modified` and `ETag` headers. {* ../../docs_src/custom_response/tutorial009_py310.py hl[2,10] *} You can also use the `response_class` parameter: {* ../../docs_src/custom_response/tutorial009b_py310.py hl[2,8,10] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt
Header("content-length", ""), Header("content-location", ""), Header("content-range", ""), Header("content-type", ""), Header("cookie", ""), Header("date", ""), Header("etag", ""), Header("expect", ""), Header("expires", ""), Header("from", ""), Header("host", ""), Header("if-match", ""), Header("if-modified-since", ""),
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 23.2K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/custom-response.md
- `path` - 要串流的檔案路徑。 - `headers` - 要包含的自訂標頭,字典形式。 - `media_type` - 描述 media type 的字串。若未設定,將根據檔名或路徑推斷 media type。 - `filename` - 若設定,會包含在回應的 `Content-Disposition` 中。 檔案回應會包含適當的 `Content-Length`、`Last-Modified` 與 `ETag` 標頭。 {* ../../docs_src/custom_response/tutorial009_py310.py hl[2,10] *} 你也可以使用 `response_class` 參數: {* ../../docs_src/custom_response/tutorial009b_py310.py hl[2,8,10] *} 在此情況下,你可以在「路徑操作函式」中直接回傳檔案路徑。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 10.3K bytes - Click Count (0) -
doc/godebug.md
Go 1.23 changed [`net/http.ServeContent`](/pkg/net/http#ServeContent), [`net/http.ServeFile`](/pkg/net/http#ServeFile), and [`net/http.ServeFS`](/pkg/net/http#ServeFS) to remove Cache-Control, Content-Encoding, Etag, and Last-Modified headers when serving an error. This behavior is controlled by the [`httpservecontentkeepheaders` setting](/pkg/net/http#ServeContent). Using `httpservecontentkeepheaders=1` restores the pre-Go 1.23 behavior.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Mar 20 15:49:10 GMT 2026 - 26K bytes - Click Count (0)