Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 59 for NONE (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/Cache.kt

          }
        }
    
        /**
         * Returns true if none of the Vary headers have changed between [cachedRequest] and
         * [newRequest].
         */
        fun varyMatches(
          cachedResponse: Response,
          cachedRequest: Headers,
          newRequest: Request,
        ): Boolean {
          return cachedResponse.headers.varyFields().none {
            cachedRequest.values(it) != newRequest.headers(it)
          }
        }
    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)
  2. docs/features/calls.md

    Some requests will have a cached response. When this cached response isn’t fresh, OkHttp can do a _conditional GET_ to download an updated response if it’s newer than what’s cached. This requires headers like `If-Modified-Since` and `If-None-Match` to be added.
    
    ## Rewriting Responses
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/SocksProxy.kt

        fromSource: BufferedSource,
        fromSink: BufferedSink,
      ) {
        val version = fromSource.readByte() and 0xff
        val methodCount = fromSource.readByte() and 0xff
        var selectedMethod = METHOD_NONE
        if (version != VERSION_5) {
          throw ProtocolException("unsupported version: $version")
        }
        for (i in 0 until methodCount) {
          val candidateMethod: Int = fromSource.readByte() and 0xff
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

            override fun callFailed(
              call: Call,
              ioe: IOException,
            ) = TODO()
    
            override fun canceled(call: Call) = TODO()
          }
        val none: EventListener = EventListener.NONE
      }
    
      @Test
      fun eventListenerBuilder() {
        var builder: EventListener.Factory = EventListener.Factory { TODO() }
      }
    
      @Test
      fun formBody() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  5. okhttp/src/main/kotlin/okhttp3/Headers.kt

       * the same order. Note that two headers instances may be *semantically* equal but not equal
       * according to this method. In particular, none of the following sets of headers are equal
       * according to this method:
       *
       * 1. Original
       * ```
       * Content-Type: text/html
       * Content-Length: 50
       * ```
       *
       * 2. Different order
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  6. docs/features/interceptors.md

    ```
    INFO: Sending request http://www.publicobject.com/helloworld.txt on Connection{www.publicobject.com:80, proxy=DIRECT hostAddress=54.187.32.157 cipherSuite=none protocol=http/1.1}
    User-Agent: OkHttp Example
    Host: www.publicobject.com
    Connection: Keep-Alive
    Accept-Encoding: gzip
    
    INFO: Received response for http://www.publicobject.com/helloworld.txt in 115.6ms
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

        val networkRequest = strategy.networkRequest
        val cacheResponse = strategy.cacheResponse
    
        cache?.trackResponse(strategy)
        val listener = (call as? RealCall)?.eventListener ?: EventListener.NONE
    
        if (cacheCandidate != null && cacheResponse == null) {
          // The cache candidate wasn't applicable. Close it.
          cacheCandidate.body.closeQuietly()
        }
    
    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)
  8. okhttp/src/test/java/okhttp3/ResponseJvmTest.kt

              sink: Buffer,
              byteCount: Long,
            ): Long {
              check(!closed)
              return data.read(sink, byteCount)
            }
    
            override fun timeout(): Timeout {
              return Timeout.NONE
            }
          }
        return source.buffer().asResponseBody(null, -1)
      }
    
      private fun newResponse(
        responseBody: ResponseBody,
        code: Int = 200,
        fn: Response.Builder.() -> Unit = {},
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""connectEnd: http/1.1"""))
          .assertLogMatch(
            Regex(
              """connectionAcquired: Connection\{${url.host}:\d+, proxy=DIRECT hostAddress=${url.host}/.+ cipherSuite=none protocol=http/1\.1\}""",
            ),
          )
          .assertLogMatch(Regex("""requestHeadersStart"""))
          .assertLogMatch(Regex("""requestHeadersEnd"""))
          .assertLogMatch(Regex("""responseHeadersStart"""))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

      ): RouteSelector {
        return RouteSelector(
          address = address,
          routeDatabase = routeDatabase,
          fastFallback = fastFallback,
          connectionUser = CallConnectionUser(call, ConnectionListener.NONE, newChain(call)),
        )
      }
    
      private fun newChain(call: RealCall): RealInterceptorChain {
        return RealInterceptorChain(
          call = call,
          interceptors = listOf(),
          index = 0,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
Back to top