- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for Scheme (0.17 sec)
-
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
) .hostnameVerifier(RecordingHostnameVerifier()) .build() scheme = "https" } else { server.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE) client = clientTestRule.newClientBuilder() .protocols(listOf(Protocol.H2_PRIOR_KNOWLEDGE)) .build() scheme = "http" } } @AfterEach fun tearDown() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
val url = userResponse.request.url.resolve(location) ?: return null // If configured, don't follow redirects between SSL and non-SSL. val sameScheme = url.scheme == userResponse.request.url.scheme if (!sameScheme && !client.followSslRedirects) return null // Most redirects don't include a request body. val requestBuilder = userResponse.request.newBuilder()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 12.1K bytes - Viewed (4) -
okhttp/src/test/java/okhttp3/CallTest.kt
} /** Cancel a call that's waiting for connect to complete. */ private fun cancelDuringConnect(scheme: String?) { server.enqueue(MockResponse(socketPolicy = StallSocketAtStart)) val cancelDelayMillis = 300L val call = client.newCall(Request(server.url("/").newBuilder().scheme(scheme!!).build())) cancelLater(call, cancelDelayMillis) val startNanos = System.nanoTime()
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
builder.add("", "pin1", "pin2") } @Test fun challenge() { var challenge = Challenge("", mapOf("" to "")) challenge = Challenge("", "") val scheme: String = challenge.scheme val authParams: Map<String?, String> = challenge.authParams val realm: String? = challenge.realm val charset: Charset = challenge.charset
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) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
// Adapt the request and response into our Request and Response domain model. val scheme = if (request.handshake != null) "https" else "http" val authority = request.headers["Host"] // Has host and port. val fancyRequest = Request.Builder() .url("$scheme://$authority/") .headers(request.headers) .build() val fancyResponse = Response.Builder()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 37.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt
* * @param streamId client-initiated stream ID. Must be an odd number. * @param promisedStreamId server-initiated stream ID. Must be an even number. * @param requestHeaders minimally includes `:method`, `:scheme`, `:authority`, and `:path`. */ @Throws(IOException::class) fun pushPromise( streamId: Int, promisedStreamId: Int, requestHeaders: List<Header>, ) { this.withLock {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 11.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
.setHeader("Sec-WebSocket-Accept", acceptHeader(key!!)) } private fun websocketScheme(scheme: String) { webServer.enqueue( MockResponse.Builder() .webSocketUpgrade(serverListener) .build(), ) val request = Request.Builder() .url(scheme + "://" + webServer.hostName + ":" + webServer.port + "/") .build()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 35.2K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/Request.kt
open fun url(url: String): Builder { return url(canonicalUrl(url).toHttpUrl()) } /** * Sets the URL target of this request. * * @throws IllegalArgumentException if the scheme of [url] is not `http` or `https`. */ open fun url(url: URL) = url(url.toString().toHttpUrl()) /** * Sets the header named [name] to [value]. If this request already has any headers
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:17:44 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp/api/okhttp.api
public final fun -deprecated_authParams ()Ljava/util/Map; public final fun -deprecated_charset ()Ljava/nio/charset/Charset; public final fun -deprecated_realm ()Ljava/lang/String; public final fun -deprecated_scheme ()Ljava/lang/String; public fun <init> (Ljava/lang/String;Ljava/lang/String;)V public fun <init> (Ljava/lang/String;Ljava/util/Map;)V public final fun authParams ()Ljava/util/Map;
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 70.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Protocol.kt
*/ package okhttp3 import okio.IOException /** * Protocols that OkHttp implements for [ALPN][ietf_alpn] selection. * * ## Protocol vs Scheme * * Despite its name, [java.net.URL.getProtocol] returns the [scheme][java.net.URI.getScheme] (http, * https, etc.) of the URL, not the protocol (http/1.1, spdy/3.1, etc.). OkHttp uses the word * *protocol* to identify how HTTP messages are framed. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:17:33 GMT 2024 - 4.4K bytes - Viewed (1)