Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for Post (0.24 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        @Volatile var callsPerHost = AtomicInteger(0)
          private set
    
        fun reuseCallsPerHostFrom(other: AsyncCall) {
          this.callsPerHost = other.callsPerHost
        }
    
        val host: String
          get() = originalRequest.url.host
    
        val request: Request
          get() = originalRequest
    
        val call: RealCall
          get() = this@RealCall
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  2. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

          this.associatedStreamId = associatedStreamId
          this.headerBlock = headerBlock
        }
    
        override fun alternateService(
          streamId: Int,
          origin: String,
          protocol: ByteString,
          host: String,
          port: Int,
          maxAge: Long,
        ) {
          throw UnsupportedOperationException()
        }
      }
    
      companion object {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

     * This class contains a Kotlin implementation of the pseudocode specified by RFC 3492. It includes
     * direct translation of the pseudocode presented there.
     *
     * Partner this class with [UTS #46] to implement IDNA2008 [RFC 5890] like most browsers do.
     *
     * [RFC 3492]: https://datatracker.ietf.org/doc/html/rfc3492
     * [RFC 5890]: https://datatracker.ietf.org/doc/html/rfc5890
     * [UTS #46]: https://www.unicode.org/reports/tr46/
     */
    object Punycode {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Cache.kt

      taskRunner: TaskRunner,
    ) : Closeable, Flushable {
      /** Create a cache of at most [maxSize] bytes in [directory]. */
      constructor(
        fileSystem: FileSystem,
        directory: Path,
        maxSize: Long,
      ) : this(
        directory,
        maxSize,
        fileSystem,
        TaskRunner.INSTANCE,
      )
    
      /** Create a cache of at most [maxSize] bytes in [directory]. */
      constructor(directory: File, maxSize: Long) : this(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

        }
      }
    }
    
    private fun Request.requestForCache(): Request {
      val cacheUrlOverride = cacheUrlOverride
    
      return if (cacheUrlOverride != null && (method == "GET" || method == "POST")) {
        newBuilder()
          .get()
          .url(cacheUrlOverride)
          .cacheUrlOverride(null)
          .build()
      } else {
        this
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

                },
            ),
          )
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("ABCDE")
        val request = server.takeRequest()
        assertThat(request.requestLine).isEqualTo("POST /foo HTTP/1.1")
        assertArrayEquals(postBytes, request.body.readByteArray())
        assertThat(request.headers["Content-Length"]).isNull()
      }
    
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  7. CHANGELOG.md

        irrelevant data.
    
        This feature may be used with `POST` requests to cache their responses. In such cases the
        request body is not used to determine the cache key, so you must manually add cache-relevant
        data to the override URL. For example, you could add a `request-body-sha256` query parameter so
        requests with the same POST data get the same cache entry.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CacheTest.kt

      fun requestMethodPostIsNotCached() {
        // We could support this but choose not to for implementation simplicity
        testRequestMethod("POST", false)
      }
    
      @Test
      fun requestMethodPostIsNotCachedUnlessOverridden() {
        // Supported via cacheUrlOverride
        testRequestMethod("POST", true, withOverride = true)
      }
    
      @Test
      fun requestMethodPutIsNotCached() {
        testRequestMethod("PUT", false)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          // If the domain is present, it must domain match. Otherwise we have a host-only cookie.
          val urlHost = url.host
          if (domain == null) {
            domain = urlHost
          } else if (!domainMatch(urlHost, domain)) {
            return null // No domain match? This is either incompetence or malice!
          }
    
          // If the domain is a suffix of the url host, it must not be a public suffix.
          if (urlHost.length != domain.length &&
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

      private const val ALT_IPA_NAME = 7
    
      override fun verify(
        host: String,
        session: SSLSession,
      ): Boolean {
        return if (!host.isAscii()) {
          false
        } else {
          try {
            verify(host, session.peerCertificates[0] as X509Certificate)
          } catch (_: SSLException) {
            false
          }
        }
      }
    
      fun verify(
        host: String,
        certificate: X509Certificate,
      ): Boolean {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top