- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for Page (0.17 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
assertThat(readAscii(response.body.byteStream(), Int.MAX_VALUE)) .isEqualTo("This page has moved!") } @Test fun notRedirectedFromHttpToHttps() { server.enqueue( MockResponse( code = HttpURLConnection.HTTP_MOVED_TEMP, headers = headersOf("Location", "https://anyhost/foo"), body = "This page has moved!", ), ) client = client.newBuilder()
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
} return Platform() } /** * Returns the concatenation of 8-bit, length prefixed protocol names. * http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-04#page-4 */ fun concatLengthPrefixed(protocols: List<Protocol>): ByteArray { val result = Buffer() for (protocol in alpnProtocolNames(protocols)) { result.writeByte(protocol.length)
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 9.8K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpStatusCodes.kt
* <http://www.apache.org/>. */ package okhttp3.internal.http // HTTP Status Codes not offered by HttpUrlConnection. // // https://datatracker.ietf.org/doc/html/rfc7231#page-47 // // From https://github.com/apache/httpcomponents-core/blob/master/httpcore5/src/main/java/org/apache/hc/core5/http/HttpStatus.java /** `100 Continue` (HTTP/1.1 - RFC 7231) */ const val HTTP_CONTINUE = 100
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 1.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
* * * **Embedded resources like images and iframes** in browsers use the context as the page in * the address bar and the subject is the URL of an embedded resource. * * * **Potentially-destructive navigations such as HTTP POST calls** use the context as the page * originating the navigation, and the subject is the page being navigated to. *
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Apr 06 04:12:05 GMT 2024 - 23.1K bytes - Viewed (0) -
README.md
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 6.2K bytes - Viewed (0) -
mockwebserver/README.md
case "/v1/profile/info": return new MockResponse().setResponseCode(200).setBody("{\\\"info\\\":{\\\"name\":\"Lucas Albuquerque\",\"age\":\"21\",\"gender\":\"male\"}}"); } return new MockResponse().setResponseCode(404); } }; server.setDispatcher(dispatcher); ``` ### Download ```kotlin
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sun Dec 17 15:34:10 GMT 2023 - 5K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
// alternative subject starting with a japanese kanji character. This is // not supported by Android because the underlying implementation from // harmony follows the definition from rfc 1034 page 10 for alternative // subject names. This causes the code to drop all alternative subjects. assertThat(verifier.verify("bar.com", session)).isTrue() assertThat(verifier.verify("a.bar.com", session)).isFalse()
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 40.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
.cache(cache) .build() server.enqueue( MockResponse( headers = headersOf("cache-control", "max-age=60"), body = "ABCD", ), ) server.enqueue( MockResponse( headers = headersOf("cache-control", "max-age=60"), body = "EFGH", ), ) val call1 = client.newCall(Request(server.url("/"))) val response1 = call1.execute()
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
* * In addition to composing URLs from their component parts and decomposing URLs into their * component parts, this class implements relative URL resolution: what address you'd reach by * clicking a relative link on a specified page. For example: * * ```java * HttpUrl base = HttpUrl.parse("https://www.youtube.com/user/WatchTheDaily/videos"); * HttpUrl link = base.resolve("../../watch?v=cbP2N1BQdYc"); * System.out.println(link); * ``` *
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 63.5K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/CookieTest.kt
.isEqualTo(2000L) assertThat(parseCookie(0L, url, "a=b; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=2")!!.expiresAt) .isEqualTo(2000L) } /** If a cookie incorrectly defines multiple 'Max-Age' attributes, the last one defined wins. */ @Test fun lastMaxAgeWins() { assertThat(parseCookie(0L, url, "a=b; Max-Age=2; Max-Age=4; Max-Age=1; Max-Age=3")!!.expiresAt)
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 24.3K bytes - Viewed (0)