- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 47 for replace (0.33 sec)
-
native-image-tests/src/main/kotlin/okhttp3/RunTests.kt
*/ fun buildRequest(selectors: List<DiscoverySelector>): LauncherDiscoveryRequest { val request: LauncherDiscoveryRequest = LauncherDiscoveryRequestBuilder.request() // TODO replace junit.jupiter.extensions.autodetection.enabled with API approach. // .enableImplicitConfigurationParameters(false) .selectors(selectors) .build() return request } /**
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Headers.kt
* found, the existing values are replaced. */ operator fun set( name: String, value: Date, ) = set(name, value.toHttpDateString()) /** * Set a field with the specified instant. If the field is not found, it is added. If the field * is found, the existing values are replaced. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt
when { startsWith('"'.code.toByte()) -> readQuotedString() else -> readToken() } ?: return // Expected a value. val replaced = parameters.put(peek, parameterValue) peek = null if (replaced != null) return // Unexpected duplicate parameter. if (!skipCommasAndWhitespace() && !exhausted()) return // Expected ',' or EOF. }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt
append(":") for (pin in pins) { append("\n ") append(pin) } } throw SSLPeerUnverifiedException(message) } @Deprecated( "replaced with {@link #check(String, List)}.", ReplaceWith("check(hostname, peerCertificates.toList())"), ) @Throws(SSLPeerUnverifiedException::class) fun check( hostname: String,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 14.2K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/Response.kt
apply { this.handshake = handshake } /** * Sets the header named [name] to [value]. If this request already has any headers * with that name, they are all replaced. */ open fun header( name: String, value: String, ) = commonHeader(name, value) /** * Adds a header with [name] to [value]. Prefer this method for multiply-valued
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 15.5K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
import okhttp3.Headers.Companion.headersOf import okhttp3.WebSocketListener import okhttp3.internal.addHeaderLenient import okhttp3.internal.http2.Settings import okio.Buffer /** A scripted response to be replayed by the mock web server. */ @ExperimentalOkHttpApi class MockResponse { /** Returns the HTTP response line, such as "HTTP/1.1 200 OK". */ val status: String val code: Int get() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 13.3K bytes - Viewed (1) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
altNames += altName } /** * Set this certificate's common name (CN). Historically this held the hostname of TLS * certificate, but that practice was deprecated by [RFC 2818][rfc_2818] and replaced with * [addSubjectAlternativeName]. If unset a random string will be used. * * [rfc_2818]: https://tools.ietf.org/html/rfc2818 */ fun commonName(cn: String) = apply {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 21.6K bytes - Viewed (1) -
samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt
} private fun readClientRandom(param: String): String? { val matchResult = randomRegex.find(param) return if (matchResult != null) { matchResult.groupValues[1].replace(" ", "") } else { null } } override fun secureConnectStart(call: Call) { // Register to capture "Produced ClientHello handshake message".
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.7K bytes - Viewed (1) -
docs/features/https.md
} } } ``` ### Customizing Trusted Certificates ([.kt][CustomTrustKotlin], [.java][CustomTrustJava]) The full code sample shows how to replace the host platform’s certificate authorities with your own set. As above, **do not use custom certificates without the blessing of your server’s TLS administrator!** === ":material-language-kotlin: Kotlin" ```kotlin
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Dec 24 00:16:30 GMT 2022 - 10.5K bytes - Viewed (0) -
okhttp-android/src/main/baseline-prof.txt
HSPLkotlin/text/StringsKt__StringsJVMKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z HSPLkotlin/text/StringsKt__StringsJVMKt;->regionMatches(Ljava/lang/String;ILjava/lang/String;IIZ)Z HSPLkotlin/text/StringsKt__StringsJVMKt;->replace$default(Ljava/lang/String;CCZI)Ljava/lang/String; HSPLkotlin/text/StringsKt__StringsJVMKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
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)