Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for HTTPMethod (1.82 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpMethod.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import kotlin.jvm.JvmStatic
    
    object HttpMethod {
      @JvmStatic // Despite being 'internal', this method is called by popular 3rd party SDKs.
      fun invalidatesCache(method: String): Boolean =
        (
          method == "POST" ||
            method == "PATCH" ||
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/PublicInternalApiTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

        val sentRequestMillis = System.currentTimeMillis()
    
        var invokeStartEvent = true
        var responseBuilder: Response.Builder? = null
        var sendRequestException: IOException? = null
        val hasRequestBody = HttpMethod.permitsRequestBody(request.method) && requestBody != null
        val isUpgradeRequest =
          !hasRequestBody &&
            "upgrade".equals(request.header("Connection"), ignoreCase = true)
        try {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

    import okhttp3.Response
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.discard
    import okhttp3.internal.http.ExchangeCodec
    import okhttp3.internal.http.HttpMethod
    import okhttp3.internal.http.RealResponseBody
    import okhttp3.internal.http.promisesBody
    import okhttp3.internal.stripBody
    import okio.Buffer
    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

            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."
              }
            }
            this.method = method
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
  6. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                return;
            }
    
            final Method httpMethod = Method.valueOf(request.getMethod().toUpperCase(Locale.ROOT));
            final CurlRequest curlRequest = ComponentUtil.getCurlHelper().request(httpMethod, path);
    
            final String contentType = request.getHeader("Content-Type");
            if (StringUtil.isNotEmpty(contentType)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        val requestBuilder = userResponse.request.newBuilder()
        if (HttpMethod.permitsRequestBody(method)) {
          val responseCode = userResponse.code
          val maintainBody =
            HttpMethod.redirectsWithBody(method) ||
              responseCode == HTTP_PERM_REDIRECT ||
              responseCode == HTTP_TEMP_REDIRECT
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.http.HttpMethod
    import okhttp3.internal.http2.ErrorCode
    import okhttp3.internal.http2.Header
    import okhttp3.internal.http2.Http2Connection
    import okhttp3.internal.http2.Http2Stream
    import okhttp3.internal.immutableListOf
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

    import okhttp3.internal.cache.CacheStrategy
    import okhttp3.internal.cache.DiskLruCache
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.http.HttpMethod
    import okhttp3.internal.http.StatusLine
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.platform.Platform.Companion.WARN
    import okhttp3.internal.toLongOrDefault
    import okio.Buffer
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. cmd/signature-v4.go

    	}
    	sort.Strings(headers)
    	return strings.Join(headers, ";")
    }
    
    // getCanonicalRequest generate a canonical request of style
    //
    // canonicalRequest =
    //
    //	<HTTPMethod>\n
    //	<CanonicalURI>\n
    //	<CanonicalQueryString>\n
    //	<CanonicalHeaders>\n
    //	<SignedHeaders>\n
    //	<HashedPayload>
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Dec 13 22:19:12 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top