Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for redirectsToGet (0.14 sec)

  1. 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"
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. 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 null
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 12.4K bytes
    - Viewed (0)
Back to top