Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 137 for Value (0.12 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        val headers = response.headers
        val size = headers.size
        val headerList: MutableList<String> = ArrayList(size)
        for (i in 0 until size) {
          headerList.add(headers.name(i) + ": " + headers.value(i))
        }
        return headerList
      }
    
      @Test
      fun shutdownWithoutStart() {
        val server = MockWebServer()
        server.shutdown()
      }
    
      @Test
      fun closeViaClosable() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

      @Throws(SocketException::class)
      override fun setTrafficClass(value: Int) {
        delegate!!.trafficClass = value
      }
    
      @Throws(SocketException::class)
      override fun getTrafficClass(): Int {
        return delegate!!.trafficClass
      }
    
      @Throws(IOException::class)
      override fun sendUrgentData(value: Int) {
        delegate!!.sendUrgentData(value)
      }
    
      override fun getChannel(): SocketChannel {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

            return Part(headers, body)
          }
    
          @JvmStatic
          fun createFormData(
            name: String,
            value: String,
          ): Part = createFormData(name, null, value.toRequestBody())
    
          @JvmStatic
          fun createFormData(
            name: String,
            filename: String?,
            body: RequestBody,
          ): Part {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/AsynchronousGet.kt

              response: Response,
            ) {
              response.use {
                if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
                for ((name, value) in response.headers) {
                  println("$name: $value")
                }
    
                println(response.body.string())
              }
            }
          },
        )
      }
    }
    
    fun main() {
      AsynchronousGet().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

              }
            }
    
            error("unreachable") // TODO(jwilson): fix intersectWith() to return T.
          }
    
          override fun timeout(): Timeout = timeout
        }
    
        /**
         * Returns a value in [0..maxByteCount] with the number of bytes that can be read from [source] in
         * the current part. If this returns 0 the current part is exhausted; otherwise it has at least
         * one byte left to read.
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

          }
    
          override operator fun get(url: HttpUrl): String {
            val value = url.queryParameter("q")
            return value!!.substring(1, value.length - 1)
          }
        },
    
        FRAGMENT {
          override fun urlString(value: String): String = "http://example.com/#a${value}z"
    
          override fun encodedValue(url: HttpUrl): String {
            val fragment = url.encodedFragment
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/HeadersKotlinTest.kt

        assertThat(headers["e"]).isNull()
      }
    
      @Test fun iteratorOperator() {
        val headers = headersOf("a", "b", "c", "d")
    
        val pairs = mutableListOf<Pair<String, String>>()
        for ((name, value) in headers) {
          pairs += name to value
        }
    
        assertThat(pairs).containsExactly("a" to "b", "c" to "d")
      }
    
      @Test fun builderGetOperator() {
        val builder = Headers.Builder()
        builder.add("a", "b")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Dec 21 01:54:49 GMT 2023
    - 2K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt

     * limitations under the License.
     */
    package okhttp3.tls.internal.der
    
    /**
     * The first two bytes of each value is a header that includes its tag (field ID) and length.
     */
    internal data class DerHeader(
      /**
       * Namespace of the tag.
       *
       * This value is encoded in bits 7 and 8 of the first byte of each value.
       *
       * ```
       * 0b00xxxxxx Universal
       * 0b01xxxxxx Application
       * 0b10xxxxxx Context-Specific
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

        }
    
        val name = parameter.groups[1]?.value
        if (name == null) {
          s = parameter.range.last + 1
          continue
        }
    
        val token = parameter.groups[2]?.value
        val value =
          when {
            token == null -> {
              // Value is "double-quoted". That's valid and our regex group already strips the quotes.
              parameter.groups[3]!!.value
            }
    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)
  10. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

       * until every returned [Response] has been closed.
       */
      var idleCallback: Runnable? = null
        get() = this.withLock { field }
        set(value) {
          this.withLock { field = value }
        }
    
      private var executorServiceOrNull: ExecutorService? = null
    
      @get:JvmName("executorService")
      val executorService: ExecutorService
        get() =
          this.withLock {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 9K bytes
    - Viewed (0)
Back to top