Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 137 for Value (0.2 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

        var body: MockResponseBody?
          get() = bodyVar
          set(value) {
            bodyVar = value
            streamHandlerVar = null
            webSocketListenerVar = null
          }
        var streamHandler: StreamHandler?
          get() = streamHandlerVar
          set(value) {
            streamHandlerVar = value
            bodyVar = null
            webSocketListenerVar = null
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

      val tag: Long,
      /** Encode and decode the value once tags are handled. */
      private val codec: Codec<T>,
      /** True if the default value should be used if this value is absent during decoding. */
      val isOptional: Boolean = false,
      /** The value to return if this value is absent. Undefined unless this is optional. */
      val defaultValue: T? = null,
      /** True to set the encoded or decoded value as the type hint for the current SEQUENCE. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt

          "https:${url.substring(4)}"
        }
        else -> url
      }
    }
    
    fun Request.Builder.commonHeader(
      name: String,
      value: String,
    ) = apply {
      headers[name] = value
    }
    
    fun Request.Builder.commonAddHeader(
      name: String,
      value: String,
    ) = apply {
      headers.add(name, value)
    }
    
    fun Request.Builder.commonRemoveHeader(name: String) =
      apply {
        headers.removeAll(name)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

      @JvmField val perMessageDeflate: Boolean = false,
      /** Should be a value in [8..15]. Only 15 is acceptable by OkHttp as Java APIs are limited. */
      @JvmField val clientMaxWindowBits: Int? = null,
      /** True if the agreed upon extension parameters includes "client_no_context_takeover". */
      @JvmField val clientNoContextTakeover: Boolean = false,
      /** Should be a value in [8..15]. Any value in that range is acceptable by OkHttp. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt

        set = 0
        values.fill(0)
      }
    
      operator fun set(
        id: Int,
        value: Int,
      ): Settings {
        if (id < 0 || id >= values.size) {
          return this // Discard unknown settings.
        }
    
        val bit = 1 shl id
        set = set or bit
        values[id] = value
        return this
      }
    
      /** Returns true if a value has been assigned for the setting `id`. */
      fun isSet(id: Int): Boolean {
        val bit = 1 shl id
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt

      }
    
      @Test
      fun parseCacheControlHeaderValueIsRetained() {
        val value = "max-age=12"
        val headers = headersOf("Cache-Control", value)
        val cacheControl = parse(headers)
        assertThat(cacheControl.toString()).isSameAs(value)
      }
    
      @Test
      fun parseCacheControlHeaderValueInvalidatedByPragma() {
        val headers =
          headersOf(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Response.kt

          }
    
        /**
         * Sets the header named [name] to [value]. If this request already has any headers
         * with that name, they are all replaced.
         */
        open fun header(
          name: String,
          value: String,
        ) = commonHeader(name, value)
    
        /**
         * Adds a header with [name] to [value]. Prefer this method for multiply-valued
         * headers like "Set-Cookie".
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CookiesTest.kt

        )
        get(urlWithIpAddress)
        val cookies = cookieManager.cookieStore.cookies
        assertThat(cookies.size).isEqualTo(1)
        val cookie = cookies[0]
        assertThat(cookie.name).isEqualTo("a")
        assertThat(cookie.value).isEqualTo("android")
        assertThat(cookie.comment).isNull()
        assertThat(cookie.commentURL).isNull()
        assertThat(cookie.discard).isFalse()
        assertThat(cookie.maxAge).isGreaterThan(100000000000L)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

    private val TOKEN_DELIMITERS = "\t ,=".encodeUtf8()
    
    /**
     * Parse RFC 7235 challenges. This is awkward because we need to look ahead to know how to
     * interpret a token.
     *
     * For example, the first line has a parameter name/value pair and the second line has a single
     * token68:
     *
     * ```
     * WWW-Authenticate: Digest foo=bar
     * WWW-Authenticate: Digest foo=
     * ```
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/SynchronousGet.kt

            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          for ((name, value) in response.headers) {
            println("$name: $value")
          }
    
          println(response.body.string())
        }
      }
    }
    
    fun main() {
      SynchronousGet().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.2K bytes
    - Viewed (0)
Back to top