Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for addr (0.2 sec)

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

         * with that name, they are all replaced.
         */
        open fun header(
          name: String,
          value: String,
        ) = commonHeader(name, value)
    
        /**
         * Adds a header with [name] and [value]. Prefer this method for multiply-valued
         * headers like "Cookie".
         *
         * Note that for some headers including `Content-Length` and `Content-Encoding`,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_1x.md

    OkHttp 1.x Change Log
    =====================
    
    ## Version 1.6.0
    
    _2014-05-23_
    
     * Offer bridges to make it easier to migrate from OkHttp 1.x to OkHttp 2.0.
       This adds `OkUrlFactory`, `Cache`, and `@Deprecated` annotations for APIs
       dropped in 2.0.
    
    ## Version 1.5.4
    
    _2014-04-14_
    
     * Drop ALPN support in Android. There's a concurrency bug in all
       currently-shipping versions.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

            val equalsOffset = indexOf('=', pos)
            if (equalsOffset == -1 || equalsOffset > ampersandOffset) {
              result.add(substring(pos, ampersandOffset))
              result.add(null) // No value for this name.
            } else {
              result.add(substring(pos, equalsOffset))
              result.add(substring(equalsOffset + 1, ampersandOffset))
            }
            pos = ampersandOffset + 1
          }
          return result
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

          }
    
        /**
         * Adds [header] as an HTTP header. For well-formed HTTP [header] should contain a name followed
         * by a colon and a value.
         */
        fun addHeader(header: String) =
          apply {
            headers.add(header)
          }
    
        /**
         * Adds a new header with the name and value. This may be used to add multiple headers with the
         * same name.
         */
    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)
  5. okhttp/src/main/kotlin/okhttp3/Headers.kt

         * Adds all headers from an existing collection.
         */
        fun addAll(headers: Headers) = commonAddAll(headers)
    
        /**
         * Add a header with the specified name and formatted date. Does validation of header names and
         * value.
         */
        fun add(
          name: String,
          value: Date,
        ) = add(name, value.toHttpDateString())
    
        /**
    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. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

        val latch = CountDownLatch(1)
    
        override fun runOnce(): Long {
          latch.countDown()
          return -1L
        }
      }
    
      /** Adds [task] to run in [delayNanos]. Returns true if the coordinator is impacted. */
      internal fun scheduleAndDecide(
        task: Task,
        delayNanos: Long,
        recurrence: Boolean,
      ): Boolean {
        task.initQueue(this)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Response.kt

         * 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".
         */
        open fun addHeader(
          name: String,
          value: String,
        ) = commonAddHeader(name, value)
    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/HeadersTest.kt

        val headers =
          Headers.Builder()
            .add("A", "a")
            .add("B", "bb")
            .build()
        assertThat(headers.toString()).isEqualTo("A: a\nB: bb\n")
      }
    
      @Test fun headersToStringRedactsSensitiveHeaders() {
        val headers =
          Headers.Builder()
            .add("content-length", "99")
            .add("authorization", "peanutbutter")
            .add("proxy-authorization", "chocolate")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

          CertificatePinner.Builder()
            .add("example.com", "sha1/" + certA1.certificate.sha1Hash().base64())
            .build()
    
        certificatePinner.check("example.com", listOf(certA1.certificate))
      }
    
      @Test fun successfulFindMatchingPins() {
        val certificatePinner =
          CertificatePinner.Builder()
            .add("first.com", certA1Sha256Pin, certB1Sha256Pin)
            .add("second.com", certC1Sha256Pin)
            .build()
    
    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)
  10. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

            events.add(Message(string = text))
          }
    
          override fun onReadMessage(bytes: ByteString) {
            events.add(Message(bytes = bytes))
          }
    
          override fun onReadPing(payload: ByteString) {
            events.add(Ping(payload))
          }
    
          override fun onReadPong(payload: ByteString) {
            events.add(Pong(payload))
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top