Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for receiveHeaders (0.09 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

    import okhttp3.internal.http.HTTP_CONTINUE
    import okhttp3.internal.http.RequestLine
    import okhttp3.internal.http.StatusLine
    import okhttp3.internal.http.promisesBody
    import okhttp3.internal.http.receiveHeaders
    import okhttp3.internal.http1.Http1ExchangeCodec.Companion.TRAILERS_RESPONSE_BODY_TRUNCATED
    import okhttp3.internal.skipAll
    import okio.Buffer
    import okio.ForwardingTimeout
    import okio.Sink
    import okio.Source
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

      var tokenSize = indexOfElement(TOKEN_DELIMITERS)
      if (tokenSize == -1L) tokenSize = size
    
      return when {
        tokenSize != 0L -> readUtf8(tokenSize)
        else -> null
      }
    }
    
    fun CookieJar.receiveHeaders(
      url: HttpUrl,
      headers: Headers,
    ) {
      if (this === CookieJar.NO_COOKIES) return
    
      val cookies = Cookie.parseAll(url, headers)
      if (cookies.isEmpty()) return
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

          requestBuilder.header("User-Agent", USER_AGENT)
        }
    
        val networkRequest = requestBuilder.build()
        val networkResponse = chain.proceed(networkRequest)
    
        cookieJar.receiveHeaders(networkRequest.url, networkResponse.headers)
    
        val responseBuilder =
          networkResponse
            .newBuilder()
            .request(networkRequest)
    
        if (transparentGzip &&
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

            updateConnectionFlowControl(length.toLong())
            source.skip(length.toLong())
            return
          }
          dataStream.receiveData(source, length)
          if (inFinished) {
            dataStream.receiveHeaders(Headers.EMPTY, true)
          }
        }
    
        override fun headers(
          inFinished: Boolean,
          streamId: Int,
          associatedStreamId: Int,
          headerBlock: List<Header>,
        ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

        length: Int,
      ) {
        assertLockNotHeld()
    
        this.source.receive(source, length.toLong())
      }
    
      /** Accept headers from the network and store them until the client calls [takeHeaders]. */
      fun receiveHeaders(
        headers: Headers,
        inFinished: Boolean,
      ) {
        assertLockNotHeld()
    
        val open: Boolean
        withLock {
          if (!hasResponseHeaders ||
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top