- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 97 for revalidate (0.16 sec)
-
okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt
"Cache-Control", "must-revalidate", ) val cacheControl = parse(headers) assertThat(cacheControl.toString()).isEqualTo("max-age=12, must-revalidate") } @Test fun parsePragmaHeaderValueIsNotRetained() { val headers = headersOf("Pragma", "must-revalidate") val cacheControl = parse(headers) assertThat(cacheControl.toString()).isEqualTo("must-revalidate") } @Test
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt
if (sMaxAgeSeconds != -1) append("s-maxage=").append(sMaxAgeSeconds).append(", ") if (isPrivate) append("private, ") if (isPublic) append("public, ") if (mustRevalidate) append("must-revalidate, ") if (maxStaleSeconds != -1) append("max-stale=").append(maxStaleSeconds).append(", ") if (minFreshSeconds != -1) append("min-fresh=").append(minFreshSeconds).append(", ")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
.build() val invalidate = client.newCall(request).execute() assertThat(invalidate.body.string()).isEqualTo("B") assertThat(get(url).body.string()).isEqualTo("C") } @Test fun postInvalidatesCacheWithUncacheableResponse() { // 1. Seed the cache. // 2. Invalidate it with an uncacheable response. // 3. Expect a cache miss.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0) -
okhttp-hpacktests/README.md
OkHttp HPACK tests ================== These tests use the [hpack-test-case][1] project to validate OkHttp's HPACK implementation. The HPACK test cases are in a separate git submodule, so to initialize them, you must run: git submodule init git submodule update TODO ---- * Add maven goal to avoid manual call to git submodule init. * Make hpack-test-case update itself from git, and run new tests.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Dec 15 16:59:53 GMT 2014 - 578 bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt
override fun getCreationTime(): Long { return delegate!!.creationTime } override fun getLastAccessedTime(): Long { return delegate!!.lastAccessedTime } override fun invalidate() { delegate!!.invalidate() } override fun isValid(): Boolean { return delegate!!.isValid } override fun putValue( s: String, o: Any, ) { delegate!!.putValue(s, o) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CacheControl.kt
*/ class CacheControl internal constructor( /** * In a response, this field's name "no-cache" is misleading. It doesn't prevent us from caching * the response; it only means we have to validate the response with the origin server before * returning it. We can do this with a conditional GET. * * In a request, it means do not use a cache to satisfy the request. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 10K bytes - Viewed (0) -
README.md
* Swagger UI. * ReDoc. --- Coming back to the previous code example, **FastAPI** will: * Validate that there is an `item_id` in the path for `GET` and `PUT` requests. * Validate that the `item_id` is of type `int` for `GET` and `PUT` requests. * If it is not, the client will see a useful, clear error.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 22.6K bytes - Viewed (0) -
go.sum
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew=
Plain Text - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 21:52:58 GMT 2024 - 109K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt
import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test /** * Jetty HTTP client. * * https://www.eclipse.org/jetty/documentation/current/http-client.html * * Baseline test if we ned to validate OkHttp behaviour against other popular clients. */ class JettyHttpClientTest { private val client = HttpClient() @BeforeEach fun setUp() { client.start() } @AfterEach fun tearDown() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
# Body - Nested Models With **FastAPI**, you can define, validate, document, and use arbitrarily deeply nested models (thanks to Pydantic). ## List fields You can define an attribute to be a subtype. For example, a Python `list`: === "Python 3.10+" ```Python hl_lines="12" {!> ../../../docs_src/body_nested_models/tutorial001_py310.py!} ``` === "Python 3.8+" ```Python hl_lines="14"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.5K bytes - Viewed (0)