- Sort Score
- Result 10 results
- Languages All
Results 11 - 17 of 17 for toURI (0.15 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
), ) assertContent("This is the 2nd server!", getResponse(newRequest("/a"))) assertThat(proxySelectionRequests).isEqualTo( listOf( server.url("/").toUrl().toURI(), server2.url("/").toUrl().toURI(), ), ) } @Test fun redirectWithAuthentication() { server2.enqueue( MockResponse(body = "Page 2"), ) server.enqueue(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt
component: Component, ) { if (codePoint == '%'.code) return val encoded = encoding.encode(codePoint) val httpUrl = component.urlString(encoded).toHttpUrl() val uri = httpUrl.toUri() val toAndFromUri = uri.toHttpUrlOrNull() val uriStripped = uriStrippedCodePoints.indexOf(codePointString) != -1 if (uriStripped) { if (uri.toString() != component.urlString("")) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
level = DeprecationLevel.ERROR, ) fun url(): URL = toUrl() @JvmName("-deprecated_uri") @Deprecated( message = "moved to toUri()", replaceWith = ReplaceWith(expression = "toUri()"), level = DeprecationLevel.ERROR, ) fun uri(): URI = toUri() @JvmName("-deprecated_scheme") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "scheme"),
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/test/java/okhttp3/RequestTest.kt
assertThat(patch.body).isEqualTo(body) } @Test fun uninitializedURI() { val request = Request.Builder().url("http://localhost/api").build() assertThat(request.url.toUri()).isEqualTo(URI("http://localhost/api")) assertThat(request.url).isEqualTo("http://localhost/api".toHttpUrl()) } @Test fun newBuilderUrlResetsUrl() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
cookie.domain = server.hostName cookie.path = "/" val portList = server.port.toString() cookie.portlist = portList cookieManager.cookieStore.add(server.url("/").toUri(), cookie) client = client.newBuilder() .cookieJar(JavaNetCookieJar(cookieManager)) .build() val response = client.newCall(Request(server.url("/page1"))).execute()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
} @Test fun httpUrl() { val httpUrl: HttpUrl = "".toHttpUrl() val isHttps: Boolean = httpUrl.isHttps val url: URL = httpUrl.toUrl() val uri: URI = httpUrl.toUri() val scheme: String = httpUrl.scheme val encodedUsername: String = httpUrl.encodedUsername val username: String = httpUrl.username val encodedPassword: String = httpUrl.encodedPassword
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) -
docs/changelogs/upgrading_to_okhttp_4.md
| HttpUrl.get(URL) | URL.toHttpUrlOrNull() | | HttpUrl.parse(String) | String.toHttpUrlOrNull() | | HttpUrl.uri() | HttpUrl.toUri() | | HttpUrl.url() | HttpUrl.toUrl() | | MediaType.get(String) | String.toMediaType() |
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 16:58:16 GMT 2022 - 10.9K bytes - Viewed (0)