- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for encodePath (0.05 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RequestLine.kt
* Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request * URL is. Includes the query component if it exists. */ fun requestPath(url: HttpUrl): String { val path = url.encodedPath val query = url.encodedQuery return if (query != null) "$path?$query" else path }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jun 17 00:47:36 UTC 2025 - 1.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
), ) server.enqueue(MockResponse()) val request = Request(server.url("/")) val call = client.newCall(request) val response = call.execute() assertThat(response.request.url.encodedPath).isEqualTo("/b") assertThat(response.request.headers).isEqualTo(headersOf()) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 8.4K bytes - Viewed (0) -
docs/changelogs/upgrading_to_okhttp_4.md
tlsVersion * **HandshakeCertificates**: keyManager, trustManager * **Headers**: size * **HeldCertificate**: certificate, keyPair * **HttpLoggingInterceptor**: level * **HttpUrl**: encodedFragment, encodedPassword, encodedPath, encodedPathSegments, encodedQuery, encodedUsername, fragment, host, password, pathSegments, pathSize, port, query, queryParameterNames, querySize, scheme, username
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
client = client .newBuilder() .addInterceptor( Interceptor { chain: Interceptor.Chain -> if (chain.request().url.encodedPath == "/b") { val requestA = Request .Builder() .url(server.url("/a")) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 28.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt
}, PATH { override fun urlString(value: String): String = "http://example.com/a${value}z/" override fun encodedValue(url: HttpUrl): String { val path = url.encodedPath return path.substring(2, path.length - 2) } override operator fun set( builder: HttpUrl.Builder, value: String, ) { builder.addPathSegment("a${value}z")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 12.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
assertThat(response.body.string()).isEqualTo("This is the new location!") val request1 = server.takeRequest() assertThat(request1.url.encodedPath).isEqualTo("/") val request2 = server.takeRequest() assertThat(request2.url.encodedPath).isEqualTo("/foo") } @ParameterizedTest @ArgumentsSource(ProtocolParamProvider::class) fun readAfterLastByte(protocol: Protocol) { setUp(protocol)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
assertThat(connect.headers["Proxy-Authorization"]).isEqualTo(credential) assertThat(connect.url.encodedPath).isEqualTo("/") val get = server.takeRequest() assertThat(get.method).isEqualTo("GET") assertThat(get.headers["Proxy-Authorization"]).isNull() assertThat(get.url.encodedPath).isEqualTo("/foo") } @Test fun preemptiveThenReactiveProxyAuthentication() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0) -
okhttp/api/jvm/okhttp.api
public static final fun defaultPort (Ljava/lang/String;)I public final fun encodedFragment ()Ljava/lang/String; public final fun encodedPassword ()Ljava/lang/String; public final fun encodedPath ()Ljava/lang/String; public final fun encodedPathSegments ()Ljava/util/List; public final fun encodedQuery ()Ljava/lang/String; public final fun encodedUsername ()Ljava/lang/String;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
assertThat(requestUrl!!.scheme).isEqualTo("http") assertThat(requestUrl.host).isEqualTo(server.hostName) assertThat(requestUrl.port).isEqualTo(server.port) assertThat(requestUrl.encodedPath).isEqualTo("/a/deep/path") assertThat(requestUrl.queryParameter("key")).isEqualTo("foo bar") } @Test fun shutdownServerAfterRequest() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
minimumDeflateSize = 0L, webSocketCloseTimeout = RealWebSocket.CANCEL_AFTER_CLOSE_MILLIS, ) val name = "MockWebServer WebSocket ${request.url.encodedPath}" webSocket.initReaderAndWriter( name = name, socket = socket, client = false, ) webSocket.loopReader(fancyResponse)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 20:36:00 UTC 2025 - 40.3K bytes - Viewed (0)