Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for unfollow (0.15 sec)

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

       *   challenge. In this case the request URL may be different than the initial request URL.
       *
       * Use the `request` of the [networkResponse] field to get the wire-level request that was
       * transmitted. In the case of follow-ups and redirects, also look at the `request` of the
       * [priorResponse] objects, which have its own [priorResponse].
       */
      @get:JvmName("request") val request: Request,
    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)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

            .build()
        assertFailsWith<IOException> {
          client.newCall(Request.Builder().url(server.url("/0")).build()).execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Too many follow-up requests: 21")
        }
      }
    
      /**
       * We had a bug where we were passing a null route to the authenticator.
       * https://github.com/square/okhttp/issues/3809
       */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

        class Part(
          @get:JvmName("headers") val headers: Headers,
          @get:JvmName("body") val body: BufferedSource,
        ) : Closeable by body
    
        internal companion object {
          /** These options follow the boundary. */
          val afterBoundaryOptions =
            Options.of(
              // 0.  "\r\n"  More parts.
              "\r\n".encodeUtf8(),
              // 1.  "--"    No more parts.
              "--".encodeUtf8(),
    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)
  4. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

          val slashCount = input.slashCount(pos, limit)
          if (slashCount >= 2 || base == null || base.scheme != this.scheme) {
            // Read an authority if either:
            //  * The input starts with 2 or more slashes. These follow the scheme if it exists.
            //  * The input scheme exists and is different from the base URL's scheme.
            //
            // The structure of an authority is:
            //   username:password@host:port
            //
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

    import okhttp3.HttpUrl
    
    /**
     * Policy on choosing which connection to use for an exchange and any retries that follow. This uses
     * the following strategies:
     *
     *  1. If the current call already has a connection that can satisfy the request it is used. Using
     *     the same connection for an initial exchange and its follow-ups may improve locality.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

              closeActiveExchange = false
              return response
            }
    
            response.body.closeQuietly()
    
            if (++followUpCount > MAX_FOLLOW_UPS) {
              throw ProtocolException("Too many follow-up requests: $followUpCount")
            }
    
            request = followUp
            priorResponse = response
          } finally {
            call.exitNetworkInterceptorExchange(closeActiveExchange)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/PushObserver.kt

       */
      fun onRequest(
        streamId: Int,
        requestHeaders: List<Header>,
      ): Boolean
    
      /**
       * The response headers corresponding to a pushed request.  When [last] is true, there are
       * no data frames to follow.
       *
       * @param streamId server-initiated stream ID: an even number.
       * @param responseHeaders minimally includes `:status`.
       * @param last when true, there is no response data.
       */
      fun onHeaders(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

              ConnectResult(this, nextPlan = connectTcpNextPlan, throwable = IOException("canceled"))
            }
            connectTcpNextPlan != null -> {
              events += "plan $id needs follow-up"
              ConnectResult(this, nextPlan = connectTcpNextPlan)
            }
            else -> {
              events += "plan $id TCP connected"
              connectState = ConnectState.TCP_CONNECTED
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

          bytesOut.writeHexadecimalUnsignedLong(chunkSize)
          bytesOut.writeUtf8("\r\n")
          bytesOut.write(body, chunkSize)
          bytesOut.writeUtf8("\r\n")
        }
        bytesOut.writeUtf8("0\r\n") // Last chunk. Trailers follow!
        this.body = bytesOut
      }
    
      fun setChunkedBody(
        body: String,
        maxChunkSize: Int,
      ): MockResponse = setChunkedBody(Buffer().writeUtf8(body), maxChunkSize)
    
    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. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         */
        fun authenticator(authenticator: Authenticator) =
          apply {
            this.authenticator = authenticator
          }
    
        /** Configure this client to follow redirects. If unset, redirects will be followed. */
        fun followRedirects(followRedirects: Boolean) =
          apply {
            this.followRedirects = followRedirects
          }
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
Back to top