- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Post (0.23 sec)
-
okhttp/src/test/java/okhttp3/CallTest.kt
assertThat(recordedRequest.method).isEqualTo("POST") assertThat(recordedRequest.body.readUtf8()).isEqualTo("def") assertThat(recordedRequest.headers["Content-Length"]).isEqualTo("3") assertThat(recordedRequest.headers["Content-Type"]).isEqualTo("text/plain; charset=utf-8") } @Test fun post_HTTPS() { enableTls() post() } @Test fun post_HTTP_2() { enableProtocol(Protocol.HTTP_2)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
fun requestMethodPostIsNotCached() { // We could support this but choose not to for implementation simplicity testRequestMethod("POST", false) } @Test fun requestMethodPostIsNotCachedUnlessOverridden() { // Supported via cacheUrlOverride testRequestMethod("POST", true, withOverride = true) } @Test fun requestMethodPutIsNotCached() { testRequestMethod("PUT", false) }
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)