Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for uri (0.15 sec)

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

        val uri = httpUrl.toUri()
        val toAndFromUri = uri.toHttpUrlOrNull()
        val uriStripped = uriStrippedCodePoints.indexOf(codePointString) != -1
        if (uriStripped) {
          if (uri.toString() != component.urlString("")) {
            fail("Encoding $component $codePoint using $encoding")
          }
          return
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        val client =
          OkHttpClient.Builder()
            .build()
        val proxySelector: ProxySelector =
          object : ProxySelector() {
            override fun select(uri: URI): List<Proxy> = listOf()
    
            override fun connectFailed(
              uri: URI,
              socketAddress: SocketAddress,
              e: IOException,
            ) {}
          }
    
        val trustManager = get().platformTrustManager()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

    internal const val PATH_SEGMENT_ENCODE_SET = " \"<>^`{}|/\\?#"
    internal const val PATH_SEGMENT_ENCODE_SET_URI = "[]"
    internal const val QUERY_ENCODE_SET = " \"'<>#"
    internal const val QUERY_COMPONENT_REENCODE_SET = " \"'<>#&="
    internal const val QUERY_COMPONENT_ENCODE_SET = " !\"#$&'(),/:;<=>?@[]\\^`{|}~"
    internal const val QUERY_COMPONENT_ENCODE_SET_URI = "\\^`{|}"
    internal const val FORM_ENCODE_SET = " !\"#$&'()+,/:;<=>?@[\\]^`{|}~"
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt

    import java.net.SocketAddress
    import java.net.URI
    import okhttp3.internal.format
    
    class RecordingProxySelector : ProxySelector() {
      @JvmField val proxies = mutableListOf<Proxy>()
    
      private val requestedUris = mutableListOf<URI>()
      private val failures = mutableListOf<String>()
    
      override fun select(uri: URI): List<Proxy> {
        requestedUris.add(uri)
        return proxies
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  5. okhttp/api/okhttp.api

    	public final fun -deprecated_queryParameterNames ()Ljava/util/Set;
    	public final fun -deprecated_querySize ()I
    	public final fun -deprecated_scheme ()Ljava/lang/String;
    	public final fun -deprecated_uri ()Ljava/net/URI;
    	public final fun -deprecated_url ()Ljava/net/URL;
    	public final fun -deprecated_username ()Ljava/lang/String;
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/proxy/NullProxySelector.kt

    import java.net.SocketAddress
    import java.net.URI
    
    /**
     * A proxy selector that always returns the [Proxy.NO_PROXY].
     */
    object NullProxySelector : ProxySelector() {
      override fun select(uri: URI?): List<Proxy> {
        requireNotNull(uri) { "uri must not be null" }
        return listOf(Proxy.NO_PROXY)
      }
    
      override fun connectFailed(
        uri: URI?,
        sa: SocketAddress?,
        ioe: IOException?,
      ) {
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  7. docs/changelogs/upgrading_to_okhttp_4.md

    | HttpUrl.get(String)                 | String.toHttpUrl()              |
    | HttpUrl.get(URI)                    | URI.toHttpUrlOrNull()           |
    | HttpUrl.get(URL)                    | URL.toHttpUrlOrNull()           |
    | HttpUrl.parse(String)               | String.toHttpUrlOrNull()        |
    | HttpUrl.uri()                       | HttpUrl.toUri()                 |
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  8. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

     */
    package okhttp3.containers
    
    import assertk.assertThat
    import assertk.assertions.contains
    import assertk.assertions.isEqualTo
    import java.net.HttpURLConnection
    import java.net.Proxy
    import java.net.URI
    import javax.net.ssl.HttpsURLConnection
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.Request
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  9. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

     *
     * > A DNS API client encodes a single DNS query into an HTTP request
     * > using either the HTTP GET or POST method and the other requirements
     * > of this section.  The DNS API server defines the URI used by the
     * > request through the use of a URI Template.
     *
     * [doh_spec]: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-13
     */
    class DnsOverHttps internal constructor(
      @get:JvmName("client") val client: OkHttpClient,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CookiesTest.kt

        server.enqueue(MockResponse())
        val serverUrl = urlWithIpAddress(server, "/")
        val androidCookieHandler: CookieHandler =
          object : CookieHandler() {
            override fun get(
              uri: URI,
              map: Map<String, List<String>>,
            ) = mapOf(
              "Cookie" to
                listOf(
                  "\$Version=\"1\"; " +
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
Back to top