- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for redirectsToGet (0.09 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpMethod.kt
fun permitsRequestBody(method: String): Boolean = !(method == "GET" || method == "HEAD") fun redirectsWithBody(method: String): Boolean = method == "PROPFIND" fun redirectsToGet(method: String): Boolean = method != "PROPFIND" fun isCacheable(requestMethod: String): Boolean = requestMethod == "GET" || requestMethod == "QUERY"
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Oct 03 17:41:45 GMT 2025 - 1.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
val maintainBody = HttpMethod.redirectsWithBody(method) || responseCode == HTTP_PERM_REDIRECT || responseCode == HTTP_TEMP_REDIRECT if (HttpMethod.redirectsToGet(method) && responseCode != HTTP_PERM_REDIRECT && responseCode != HTTP_TEMP_REDIRECT) { requestBuilder.method("GET", null) } else { val requestBody = if (maintainBody) userResponse.request.body else nullCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.5K bytes - Click Count (0)