- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 72 for Uri (0.01 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt
} @Test fun fromUri() { val uri = URI("http://username:password@host/path?query#fragment") val httpUrl = uri.toHttpUrlOrNull() assertThat(httpUrl.toString()) .isEqualTo("http://username:password@host/path?query#fragment") } @Test fun fromUriUnsupportedScheme() { val uri = URI("mailto:******@****.***") assertThat(uri.toHttpUrlOrNull()).isNull() } @Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 12K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/common/common.jsp
<%@taglib prefix="c" uri="jakarta.tags.core"%><%-- --%><%@taglib prefix="fmt" uri="jakarta.tags.fmt"%><%-- --%><%@taglib prefix="fn" uri="jakarta.tags.functions" %><%-- --%><%@taglib prefix="la" uri="http://lastaflute.org/latags" %><%-- --%><%@taglib prefix="f" uri="http://lastaflute.org/functions" %><%-- --%><%@taglib prefix="fe" uri="fess.tags.functions" %><%--
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Dec 23 06:18:48 UTC 2023 - 446 bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTesterJvm.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 5.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt
import java.net.ProxySelector import java.net.SocketAddress import java.net.URI import okhttp3.internal.format class RecordingProxySelector : ProxySelector() { @JvmField val proxies = mutableListOf<Proxy>() val requestedUris = mutableListOf<URI>() val failures = mutableListOf<String>() override fun select(uri: URI): List<Proxy> { requestedUris.add(uri) return proxies }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 1.6K bytes - Viewed (0) -
android/guava/src/com/google/common/net/PercentEscaper.java
* encoding scheme. The set of safe characters (those which remain unescaped) can be specified on * construction. * * <p>This class is primarily used for creating URI escapers in {@link UrlEscapers} but can be used * directly if required. While URI escapers impose specific semantics on which characters are * considered 'safe', this class has a minimal set of restrictions. * * <p>When escaping a String, the following rules apply:
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 8.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/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?, ) { }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FakeProxySelector.kt
import java.net.SocketAddress import java.net.URI class FakeProxySelector : ProxySelector() { val proxies: MutableList<Proxy> = mutableListOf() fun addProxy(proxy: Proxy): FakeProxySelector { proxies.add(proxy) return this } override fun select(uri: URI): List<Proxy> { // Don't handle 'socket' schemes, which the RI's Socket class may request (for SOCKS).
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
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
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
* These differences may have a significant consequence when the URI is interpreted by a * web server. For this reason the [URI class][URI] and this method should be avoided. */ @JvmName("uri") fun toUri(): URI { val uri = newBuilder().reencodeForUri().toString() return try { URI(uri) } catch (e: URISyntaxException) { // Unlikely edge case: the URI has a forbidden character in the fragment. Strip it & retry.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 63.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SocksProxyTest.kt
server.enqueue(MockResponse.Builder().body("abc").build()) val proxySelector: ProxySelector = object : ProxySelector() { override fun select(uri: URI) = listOf(socksProxy.proxy()) override fun connectFailed( uri: URI, socketAddress: SocketAddress, e: IOException, ) = error("unexpected call") } val client = clientTestRule
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 3.6K bytes - Viewed (0)