- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for permitsRequestBody (0.66 sec)
-
okhttp/src/test/java/okhttp3/PublicInternalApiTest.kt
import okhttp3.internal.http.HttpMethod.permitsRequestBody import okhttp3.internal.http.HttpMethod.requiresRequestBody import okhttp3.internal.http.hasBody import org.junit.jupiter.api.Assertions.assertFalse import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.Test @Suppress("DEPRECATION_ERROR") class PublicInternalApiTest { @Test fun permitsRequestBody() { assertTrue(permitsRequestBody("POST"))
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpMethod.kt
method == "PATCH" || method == "PROPPATCH" || // WebDAV method == "REPORT" ) @JvmStatic // Despite being 'internal', this method is called by popular 3rd party SDKs. fun permitsRequestBody(method: String): Boolean = !(method == "GET" || method == "HEAD") fun redirectsWithBody(method: String): Boolean = method == "PROPFIND" fun redirectsToGet(method: String): Boolean = method != "PROPFIND"
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt
} 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." } } this.method = method this.body = body } fun <T : Any> Request.Builder.commonTag( type: KClass<T>,
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
var invokeStartEvent = true var responseBuilder: Response.Builder? = null var sendRequestException: IOException? = null try { exchange.writeRequestHeaders(request) if (HttpMethod.permitsRequestBody(request.method) && requestBody != null) { // If there's a "Expect: 100-continue" header on the request, wait for a "HTTP/1.1 100
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.3K bytes - Viewed (0)