Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Magenta (0.21 sec)

  1. docs/changelogs/changelog_4x.md

     *  New: Constant string `okhttp3.VERSION`. This is a string like "4.5.0-RC1", "4.5.0", or
        "4.6.0-SNAPSHOT" indicating the version of OkHttp in the current runtime. Use this to include
        the OkHttp version in custom `User-Agent` headers.
    
     *  Fix: Don't crash when running as a plugin in Android Studio Canary 4.1. To enable
        platform-specific TLS features OkHttp must detect whether it's running in a JVM or in Android.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogEqual("--> GET $url http/1.1")
          .assertLogEqual("Host: $host")
          .assertLogEqual("Connection: Keep-Alive")
          .assertLogEqual("Accept-Encoding: gzip")
          .assertLogMatch(Regex("""User-Agent: okhttp/.+"""))
          .assertLogEqual("--> END GET")
          .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms\)"""))
          .assertLogEqual("Content-Length: 0")
          .assertLogEqual("<-- END HTTP")
          .assertNoMoreLogs()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Response.kt

       * by the application:
       *
       * * It may be transformed by the user's interceptors. For example, an application interceptor
       *   may add headers like `User-Agent`.
       * * It may be the request generated in response to an HTTP redirect or authentication
       *   challenge. In this case the request URL may be different than the initial request URL.
       *
    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)
  4. okhttp/src/test/java/okhttp3/InterceptorTest.kt

        assertThat(response.request.header("User-Agent")).isNotNull()
        assertThat(response.request.header("User-Agent")).isEqualTo("user request")
        assertThat(response.networkResponse!!.request.header("User-Agent")).isEqualTo(
          "intercepted request",
        )
      }
    
      @Test
      fun applicationInterceptorThrowsRuntimeExceptionAsynchronous() {
        interceptorThrowsRuntimeExceptionAsynchronous(false)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RequestTest.kt

    import org.junit.jupiter.api.Test
    
    class RequestTest {
      @Test
      fun constructor() {
        val url = "https://example.com/".toHttpUrl()
        val body = "hello".toRequestBody()
        val headers = headersOf("User-Agent", "RequestTest")
        val method = "PUT"
        val request =
          Request(
            url = url,
            headers = headers,
            method = method,
            body = body,
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      for (i in this) {
        if (predicate(i)) {
          if (result.isEmpty()) result = mutableListOf()
          (result as MutableList<T>).add(i)
        }
      }
      return result
    }
    
    internal const val USER_AGENT: String = "okhttp/${CONST_VERSION}"
    
    internal fun checkOffsetAndCount(
      arrayLength: Long,
      offset: Long,
      count: Long,
    ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_2x.md

     *  Fix: Include a backwards-compatible `OkHttp-Response-Source` header with
        `OkUrlFactory `responses.
     *  Fix: Don't include a default User-Agent header in requests made with the Call
        API. Requests made with OkUrlFactory will continue to have a default user
        agent.
     *  New: Guava-like API to create headers:
    
        ```java
        Headers headers = Headers.of(name1, value1, name2, value2, ...).
        ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

            .method("CONNECT", null)
            .header("Host", route.address.url.toHostHeader(includeDefaultPort = true))
            .header("Proxy-Connection", "Keep-Alive") // For HTTP/1.0 proxies like Squid.
            .header("User-Agent", USER_AGENT)
            .build()
    
        val fakeAuthChallengeResponse =
          Response.Builder()
            .request(proxyConnectRequest)
            .protocol(Protocol.HTTP_1_1)
            .code(HttpURLConnection.HTTP_PROXY_AUTH)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

    class RequestCommonTest {
      @Test
      fun constructorNormal() {
        val url = "https://example.com/".toHttpUrl()
        val body = "hello".toRequestBody()
        val headers = headersOf("User-Agent", "RequestTest")
        val method = "PUT"
        val request =
          Request(
            url = url,
            headers = headers,
            method = method,
            body = body,
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  10. docs/recipes.md

        ```kotlin
          private val client = OkHttpClient()
    
          fun run() {
            val request = Request.Builder()
                .url("https://api.github.com/repos/square/okhttp/issues")
                .header("User-Agent", "OkHttp Headers.java")
                .addHeader("Accept", "application/json; q=0.5")
                .addHeader("Accept", "application/vnd.github.v3+json")
                .build()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
Back to top