Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for requiresRequestBody (0.06 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

          body: RequestBody?,
        ): Builder =
          apply {
            require(method.isNotEmpty()) {
              "method.isEmpty() == true"
            }
            if (body == null) {
              require(!HttpMethod.requiresRequestBody(method)) {
                "method $method must have a request body."
              }
            } else {
              require(HttpMethod.permitsRequestBody(method)) {
                "method $method must not have a request body."
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
Back to top