Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for url (0.23 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. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        }
      }
    
      private fun supportsUrl(url: HttpUrl): Boolean {
        lock.assertHeld()
    
        val routeUrl = route.address.url
    
        if (url.port != routeUrl.port) {
          return false // Port mismatch.
        }
    
        if (url.host == routeUrl.host) {
          return true // Host match. The URL is supported.
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

        }
    
        internal fun redactUrl(url: HttpUrl): String {
          if (queryParamsNameToRedact.isEmpty() || url.querySize == 0) {
            return url.toString()
          }
          return url.newBuilder().query(null).apply {
            for (i in 0 until url.querySize) {
              val parameterName = url.queryParameterName(i)
              val newValue = if (parameterName in queryParamsNameToRedact) "██" else url.queryParameterValue(i)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

       * sensitive information.
       */
      private fun toLoggableString(): String {
        return (
          (if (isCanceled()) "canceled " else "") +
            (if (forWebSocket) "web socket" else "call") +
            " to " + redactedUrl()
        )
      }
    
      internal fun redactedUrl(): String = originalRequest.url.redact()
    
      inner class AsyncCall(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  5. docs/changelogs/changelog_4x.md

     *  Fix: Verify certificate IP addresses in canonical form. When a server presents a TLS certificate
        containing an IP address we must match that address against the URL's IP address, even when the
        two addresses are encoded differently, such as `192.168.1.1` and `0::0:0:FFFF:C0A8:101`. Note
        that OkHttp incorrectly rejected valid certificates resulting in a failure to connect; at no
    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)
  6. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

          override fun encodedValue(url: HttpUrl): String = url.encodedUsername
    
          override operator fun set(
            builder: HttpUrl.Builder,
            value: String,
          ) {
            builder.username(value)
          }
    
          override operator fun get(url: HttpUrl): String = url.username
        },
    
        PASSWORD {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/DuplexTest.kt

      fun tearDown() {
        executorService.shutdown()
      }
    
      @Test
      @Throws(IOException::class)
      fun http1DoesntSupportDuplex() {
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .post(AsyncRequestBody())
              .build(),
          )
        assertFailsWith<ProtocolException> {
          call.execute()
        }
      }
    
      @Test
      fun trueDuplexClientWritesFirst() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

        val fbRequest =
          Request.Builder()
            .url("https://graph.facebook.com/robots.txt?s=fb")
            .build()
        val twitterRequest =
          Request.Builder()
            .url("https://api.twitter.com/robots.txt?s=tw")
            .build()
        val googleRequest =
          Request.Builder()
            .url("https://www.google.com/robots.txt?s=g")
            .build()
    
        try {
    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 (1)
  9. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       * This will be invoked for route selection regardless of whether the client
       * is configured with a single proxy, a proxy selector, or neither.
       *
       * @param url a URL with only the scheme, hostname, and port specified.
       */
      open fun proxySelectStart(
        call: Call,
        url: HttpUrl,
      ) {
      }
    
      /**
       * Invoked after proxy selection.
       *
       * Note that the list of proxies is never null, but it may be a list containing
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  10. docs/features/https.md

                      .add("publicobject.com", "sha256/afwiKY3RxoMmLkuRW1l7QsPZTJPwDS2pdDROQjXw8ig=")
                      .build())
              .build()
    
          fun run() {
            val request = Request.Builder()
                .url("https://publicobject.com/robots.txt")
                .build()
    
            client.newCall(request).execute().use { response ->
              if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
Back to top