- Sort Score
- Num 10 results
- Language All
Results 451 - 460 of 693 for fun (0.01 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/MessageDeflater.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/StatusLine.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.3K bytes - Click Count (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliTestMain.kt
*/ package okhttp3.brotli import okhttp3.OkHttpClient import okhttp3.Request fun main() { val client = OkHttpClient .Builder() .addInterceptor(BrotliInterceptor) .build() sendRequest("https://httpbin.org/brotli", client) sendRequest("https://httpbin.org/gzip", client) } private fun sendRequest( url: String, client: OkHttpClient, ) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.1K bytes - Click Count (1) -
regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt
*/ @Ignore("Failing with Netty errors") @RunWith(AndroidJUnit4::class) class ApacheHttpClientTest { private var httpClient = HttpClients.createDefault() @After fun tearDown() { httpClient.close() } @Test fun get() { val request = HttpGet("https://google.com/robots.txt") httpClient.execute(request).use { response -> assertEquals(200, response.code) // TODO enable ALPN laterCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Feb 07 06:56:34 GMT 2026 - 1.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RequestLine.kt
*/ private fun includeAuthorityInRequestLine( request: Request, proxyType: Proxy.Type, ): Boolean = !request.isHttps && proxyType == Proxy.Type.HTTP /** * 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 {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jun 17 00:47:36 GMT 2025 - 1.9K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/RichReportScrapper.kt
* limitations under the License. */ package gradlebuild.binarycompatibility import org.jsoup.Jsoup import org.jsoup.nodes.Document import java.io.File internal fun scrapeRichReport(richReportFile: File): RichReport = Jsoup.parse(richReportFile, "UTF-8").run { RichReport( scrapeMessagesForSeverity("error"), scrapeMessagesForSeverity("warning"),
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Jun 28 08:29:28 GMT 2024 - 2.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RecordingCallback.kt
private val responses = mutableListOf<RecordedResponse>() @Synchronized override fun onFailure( call: Call, e: IOException, ) { responses.add(RecordedResponse(call.request(), null, null, null, e)) (this as Object).notifyAll() } @Synchronized override fun onResponse( call: Call, response: Response, ) { val body = response.body.string()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2.1K bytes - Click Count (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt
} class IanaSuites( val name: String, val suites: List<SuiteId>, ) { fun fromJavaName(javaName: String): SuiteId = suites.firstOrNull { it.name == javaName || it.name == "TLS_${javaName.drop(4)}" } ?: throw IllegalArgumentException("No such suite: $javaName") } suspend fun fetchIanaSuites(okHttpClient: OkHttpClient): IanaSuites {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt
} } private fun findMismatches(originalChanges: List<AcceptedApiChange>, sortedChanges: List<AcceptedApiChange>): List<AcceptedApiChange> { return originalChanges.filterIndexed { index, acceptedApiChange -> sortedChanges[index] != acceptedApiChange } } private fun buildErrorMessage(formattedMismatches: Map<File, String>): String {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Nov 29 14:03:44 GMT 2024 - 2.5K bytes - Click Count (0) -
okcurl/src/main/kotlin/okhttp3/curl/logging/LoggingUtil.kt
import java.util.logging.LogRecord import java.util.logging.Logger import okhttp3.internal.http2.Http2 class LoggingUtil { companion object { private val activeLoggers = mutableListOf<Logger>() fun configureLogging( debug: Boolean, showHttp2Frames: Boolean, sslDebug: Boolean, ) { if (debug || showHttp2Frames || sslDebug) { if (sslDebug) {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.7K bytes - Click Count (0)