- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for encodePath (0.2 sec)
-
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
encodedPathSegments.add("") // Always leave at least one '/'. } } fun encodedPath(encodedPath: String) = apply { require(encodedPath.startsWith("/")) { "unexpected encodedPath: $encodedPath" } resolvePath(encodedPath, 0, encodedPath.length) } fun query(query: String?) = apply { this.encodedQueryNamesAndValues =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 63.5K bytes - Viewed (1) -
okhttp/src/main/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 }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
val password: String = httpUrl.password() val host: String = httpUrl.host() val port: Int = httpUrl.port() val pathSize: Int = httpUrl.pathSize() val encodedPath: String = httpUrl.encodedPath() val encodedPathSegments: List<String> = httpUrl.encodedPathSegments() val pathSegments: List<String> = httpUrl.pathSegments() val encodedQuery: String? = httpUrl.encodedQuery()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
// '/foo/bar' for a URL like 'http://example.com/foo/bar/baz'. It always starts with '/'. if (path == null || !path.startsWith("/")) { val encodedPath = url.encodedPath val lastSlash = encodedPath.lastIndexOf('/') path = if (lastSlash != 0) encodedPath.substring(0, lastSlash) else "/" } return Cookie( cookieName, cookieValue, expiresAt, domain, path, secureOnly, httpOnly,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:12:05 GMT 2024 - 23.1K bytes - Viewed (0) -
okhttp/src/test/java/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() val responseA = client.newCall(requestA).execute()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 27.8K bytes - Viewed (0) -
okhttp/src/test/java/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()) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 8.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
val password: String = httpUrl.password val host: String = httpUrl.host val port: Int = httpUrl.port val pathSize: Int = httpUrl.pathSize val encodedPath: String = httpUrl.encodedPath val encodedPathSegments: List<String> = httpUrl.encodedPathSegments val pathSegments: List<String> = httpUrl.pathSegments val encodedQuery: String? = httpUrl.encodedQuery
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
// next line assertThat(parse("http://h/\u0085").encodedPath).isEqualTo("/%C2%85") // non-breaking space assertThat(parse("http://h/\u00a0").encodedPath).isEqualTo("/%C2%A0") // ogham space mark assertThat(parse("http://h/\u1680").encodedPath).isEqualTo("/%E1%9A%80") // mongolian vowel separator assertThat(parse("http://h/\u180e").encodedPath).isEqualTo("/%E1%A0%8E")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 67.9K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt
| | """.trimMargin(), ).setHeader("content-type", "text/event-stream") .build(), ) val source = newEventSource() assertThat(source.request().url.encodedPath).isEqualTo("/") listener.assertOpen() listener.assertEvent(null, null, "hey") listener.assertClose() } @RetryingTest(5) fun cancelInEventShortCircuits() { server.enqueue(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 6.6K bytes - Viewed (0) -
okhttp-android/src/main/baseline-prof.txt
HSPLokhttp3/HttpUrl;->encodedPassword()Ljava/lang/String; HSPLokhttp3/HttpUrl;->encodedPath()Ljava/lang/String; HSPLokhttp3/HttpUrl;->encodedPathSegments()Ljava/util/List; HSPLokhttp3/HttpUrl;->encodedQuery()Ljava/lang/String; HSPLokhttp3/HttpUrl;->encodedUsername()Ljava/lang/String;
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Mar 21 11:22:00 GMT 2022 - 127.9K bytes - Viewed (0)