Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 196 for url (0.12 sec)

  1. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

      }
    
      @Test
      fun fragmentNonAsciiThatOffendsJavaNetUri() {
        val url = "http://host/#\u0080".toHttpUrl()
        assertThat(url.toString()).isEqualTo("http://host/#\u0080")
        assertThat(url.fragment).isEqualTo("\u0080")
        assertThat(url.encodedFragment).isEqualTo("\u0080")
        // Control characters may be stripped!
        assertThat(url.toUri()).isEqualTo(URI("http://host/#"))
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        }
      }
    
      private fun OkHttpClient.get(url: String) {
        val request = Request.Builder().url(url).build()
        val response = this.newCall(request).execute()
    
        response.use {
          assertEquals(200, response.code)
        }
      }
    
      fun buildCloudflareIp(bootstrapClient: OkHttpClient): DnsOverHttps {
        return DnsOverHttps.Builder().client(bootstrapClient)
          .url("https://1.1.1.1/dns-query".toHttpUrl())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  3. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

        server.useHttps(socketFactory)
        server.requestClientAuth()
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .build(),
        )
        val call = client.newCall(Request.Builder().url(server.url("/")).build())
        val response = call.execute()
        assertThat(response.handshake!!.peerPrincipal)
          .isEqualTo(X500Principal("CN=Local Host"))
        assertThat(response.handshake!!.localPrincipal)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CookiesTest.kt

        val cookieJar = JavaNetCookieJar(cookieManager)
        val url = "https://www.squareup.com/".toHttpUrl()
        cookieJar.saveFromResponse(url, listOf(parse(url, "a=android; Domain=squareup.com")!!))
        val actualCookies = cookieJar.loadForRequest(url)
        assertThat(actualCookies.size).isEqualTo(1)
        assertThat(actualCookies[0].name).isEqualTo("a")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  5. docs/recipes.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client = OkHttpClient()
    
          fun run() {
            val formBody = FormBody.Builder()
                .add("search", "Jurassic Park")
                .build()
            val request = Request.Builder()
                .url("https://en.wikipedia.org/w/index.php")
                .post(formBody)
    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)
  6. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    # FORMAT NOT DOCUMENTED YET (parser is urltestparser.js)
    
    # Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/segments.js
    http://example\t.\norg http://example.org/foo/bar s:http h:example.org p:/
    http://user:pass@foo:21/bar;par?b#c  s:http u:user pass:pass h:foo port:21 p:/bar;par q:?b f:#c
    http:foo.com  s:http h:example.org p:/foo/foo.com
    \t\s\s\s:foo.com\s\s\s\n  s:http h:example.org p:/foo/:foo.com
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .build(),
        )
        val call1 =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .build(),
          )
        val response1 = call1.execute()
        assertThat(response1.body.string()).isEqualTo("abc")
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.8K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_2x.md

    ## Version 2.4.0-RC1
    
    _2015-05-16_
    
     *  **New HttpUrl API.** It's like `java.net.URL` but good. Note that
        `Request.Builder.url()` now throws `IllegalArgumentException` on malformed
        URLs. (Previous releases would throw a `MalformedURLException` when calling
        a malformed URL.)
    
     *  **We've improved connect failure recovery.** We now differentiate between
    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)
  9. docs/fr/docs/tutorial/first-steps.md

    ```
    
    </div>
    
    ### Étape 3: créer une *opération de chemin*
    
    #### Chemin
    
    Chemin, ou "path" fait référence ici à la dernière partie de l'URL démarrant au premier `/`.
    
    Donc, dans un URL tel que :
    
    ```
    https://example.com/items/foo
    ```
    
    ...le "path" serait :
    
    ```
    /items/foo
    ```
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 20:52:31 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Cache.kt

        ): Boolean {
          return url == request.url &&
            requestMethod == request.method &&
            varyMatches(response, varyHeaders, request)
        }
    
        fun response(snapshot: DiskLruCache.Snapshot): Response {
          val contentType = responseHeaders["Content-Type"]
          val contentLength = responseHeaders["Content-Length"]
          val cacheRequest = Request(url, varyHeaders, requestMethod)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top