Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 70 for Reaber (0.08 sec)

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

        var requestLine: String = recordedRequest.requestLine
        var method: String? = recordedRequest.method
        var path: String? = recordedRequest.path
        var headers: Headers = recordedRequest.headers
        val header: String? = recordedRequest.getHeader("")
        var chunkSizes: List<Int> = recordedRequest.chunkSizes
        var bodySize: Long = recordedRequest.bodySize
        var body: Buffer = recordedRequest.body
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

        eventListener.responseHeadersEnd(call, response)
      }
    
      @Throws(IOException::class)
      fun openResponseBody(response: Response): ResponseBody {
        try {
          val contentType = response.header("Content-Type")
          val contentLength = codec.reportedContentLength(response)
          val rawSource = codec.openResponseBodySource(response)
          val source = ResponseBodySource(rawSource, contentLength)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

          transparentGzip = true
          requestBuilder.header("Accept-Encoding", "gzip")
        }
    
        val cookies = cookieJar.loadForRequest(userRequest.url)
        if (cookies.isNotEmpty()) {
          requestBuilder.header("Cookie", cookieHeader(cookies))
        }
    
        if (userRequest.header("User-Agent") == null) {
          requestBuilder.header("User-Agent", USER_AGENT)
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

            .request(request)
            .code(401)
            .header("WWW-Authenticate", "Basic realm=\"User Visible Realm\"")
            .protocol(HTTP_2)
            .message("Unauthorized")
            .build()
        val authRequest = authenticator.authenticate(route, response)
    
        assertEquals(
          "Basic ${RecordingAuthenticator.BASE_64_CREDENTIALS}",
          authRequest!!.header("Authorization"),
        )
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt

        responses += response
        routes += route
        if (!schemeMatches(response) || credential == null) return null
        val header =
          when (response.code) {
            407 -> "Proxy-Authorization"
            else -> "Authorization"
          }
        return response.request.newBuilder()
          .addHeader(header, credential)
          .build()
      }
    
      private fun schemeMatches(response: Response): Boolean {
        if (scheme == null) return true
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. docs/contribute/concurrency.md

    The reader thread must never run application-layer code. Otherwise one slow stream can hold up the entire connection.
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 16:35:36 UTC 2022
    - 7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt

         * uses 10 MiB).
         */
        const val DEFAULT_INITIAL_WINDOW_SIZE = 65535
    
        /** HTTP/2: Size in bytes of the table used to decode the sender's header blocks. */
        const val HEADER_TABLE_SIZE = 1
    
        /** HTTP/2: The peer must not send a PUSH_PROMISE frame when this is 0. */
        const val ENABLE_PUSH = 2
    
        /** Sender's maximum number of concurrent streams. */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

            }
    
            override fun onRetryChange(timeMs: Long) {
              callbacks.add(timeMs)
            }
          }
        val buffer = Buffer().writeUtf8(source)
        val reader = ServerSentEventReader(buffer, callback)
        while (reader.processNextEvent()) {
        }
        assertThat(buffer.size, "Unconsumed buffer: ${buffer.readUtf8()}")
          .isEqualTo(0)
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

      require(name.isNotEmpty()) { "name is empty" }
      for (i in name.indices) {
        val c = name[i]
        require(c in '\u0021'..'\u007e') {
          "Unexpected char 0x${c.charCode()} at $i in header name: $name"
        }
      }
    }
    
    internal fun headersCheckValue(
      value: String,
      name: String,
    ) {
      for (i in value.indices) {
        val c = value[i]
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageInflater.kt

    class MessageInflater(
      private val noContextTakeover: Boolean,
    ) : Closeable {
      private val deflatedBytes = Buffer()
    
      private val inflater =
        Inflater(
          // nowrap (omits zlib header):
          true,
        )
    
      private val inflaterSource = InflaterSource(deflatedBytes, inflater)
    
      /** Inflates [buffer] in place as described in RFC 7692 section 7.2.2. */
      @Throws(IOException::class)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top