Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for permitsRequestBody (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        if (!sameScheme && !client.followSslRedirects) return null
    
        // Most redirects don't include a request body.
        val requestBuilder = userResponse.request.newBuilder()
        if (HttpMethod.permitsRequestBody(method)) {
          val responseCode = userResponse.code
          val maintainBody =
            HttpMethod.redirectsWithBody(method) ||
              responseCode == HTTP_PERM_REDIRECT ||
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

                }
              }
    
              else -> Unit // No request body.
            }
          }
    
          val method = request.substringBefore(' ')
          require(!hasBody || HttpMethod.permitsRequestBody(method)) {
            "Request must not have a body: $request"
          }
        } catch (e: IOException) {
          failure = e
        }
    
        return RecordedRequest(
          requestLine = request,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
Back to top