- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 7,604 for KClass (0.09 sec)
-
okhttp/src/main/kotlin/okhttp3/Request.kt
@JvmName("reifiedTag") inline fun <reified T : Any> tag(): T? = tag(T::class) /** Returns the tag attached with [type] as a key, or null if no tag is attached with that key. */ fun <T : Any> tag(type: KClass<T>): T? = type.java.cast(tags[type]) /** * Returns the tag attached with `Object.class` as a key, or null if no tag is attached with * that key. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:17:44 UTC 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt
fun <T : Any> Request.Builder.commonTag( type: KClass<T>, tag: T?, ) = apply { if (tag == null) { if (tags.isNotEmpty()) { (tags as MutableMap).remove(type) } } else { val mutableTags: MutableMap<KClass<*>, Any> = when { tags.isEmpty() -> mutableMapOf<KClass<*>, Any>().also { tags = it } else -> tags as MutableMap<KClass<*>, Any> } mutableTags[type] = tag
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpDebugLogging.kt
import kotlin.reflect.KClass import okhttp3.internal.concurrent.TaskRunner import okhttp3.internal.http2.Http2 object OkHttpDebugLogging { // Keep references to loggers to prevent their configuration from being GC'd. private val configuredLoggers = CopyOnWriteArraySet<Logger>() fun enableHttp2() = enable(Http2::class) fun enableTaskRunner() = enable(TaskRunner::class) fun logHandler() =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
ByteString::class to OCTET_STRING, Unit::class to NULL, Nothing::class to OBJECT_IDENTIFIER, Nothing::class to UTF8_STRING, String::class to PRINTABLE_STRING, Nothing::class to IA5_STRING, Nothing::class to UTC_TIME, Long::class to GENERALIZED_TIME, AnyValue::class to ANY_VALUE, ) fun any(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestCommonTest.kt
val requestA = builder.tag(String::class, "a").build() val requestB = builder.tag(String::class, "b").build() val requestC = requestA.newBuilder().tag(String::class, "c").build() assertThat(requestA.tag(String::class)).isSameAs("a") assertThat(requestB.tag(String::class)).isSameAs("b") assertThat(requestC.tag(String::class)).isSameAs("c") } @Test fun requestToStringRedactsSensitiveHeaders() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestTest.kt
.url("https://square.com") .tag(Any::class.java, objectTag) .tag(UUID::class.java, uuidTag) .tag(String::class.java, stringTag) .tag(Long::class.javaObjectType, longTag) .build() assertThat(request.tag()).isSameAs(objectTag) assertThat(request.tag(Any::class.java)).isSameAs(objectTag) assertThat(request.tag(UUID::class.java)).isSameAs(uuidTag)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.4K bytes - Viewed (0) -
okhttp/api/okhttp.api
} public final class okhttp3/EventListener$Companion { } public abstract interface class okhttp3/EventListener$Factory { public abstract fun create (Lokhttp3/Call;)Lokhttp3/EventListener; } public abstract interface annotation class okhttp3/ExperimentalOkHttpApi : java/lang/annotation/Annotation { } public final class okhttp3/FormBody : okhttp3/RequestBody {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0) -
okhttp-android/src/main/baseline-prof.txt
Lkotlin/random/Random; Lkotlin/ranges/IntProgression; Lkotlin/ranges/IntProgressionIterator; Lkotlin/ranges/IntRange; Lkotlin/ranges/RangesKt___RangesKt; Lkotlin/reflect/KCallable; Lkotlin/reflect/KClass; Lkotlin/reflect/KDeclarationContainer; Lkotlin/reflect/KProperty; Lkotlin/sequences/ConstrainedOnceSequence; Lkotlin/sequences/Sequence; Lkotlin/sequences/SequencesKt;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Mar 21 11:22:00 UTC 2022 - 127.9K bytes - Viewed (0) -
internal/config/storageclass/storage-class.go
) // Standard constants for all storage class const ( // Reduced redundancy storage class RRS = "REDUCED_REDUNDANCY" // Standard storage class STANDARD = "STANDARD" ) // Standard constats for config info storage class const ( ClassStandard = "standard" ClassRRS = "rrs" Optimize = "optimize" InlineBlock = "inline_block" // Reduced redundancy storage class environment variable
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 12:24:04 UTC 2024 - 12.3K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/BuildScanInfoCollectingServices.kt
* which collects necessary information for build scan. */ fun <T : AbstractBuildScanInfoCollectingService> Project.registerBuildScanInfoCollectingService( /* the implementation class to collect information from task execution result */ klass: Class<T>, /* which tasks we need to monitor? For example, cache-miss-monitor monitors `AbstractCompile` tasks */ taskFilter: (Task) -> Boolean,
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Apr 24 03:34:53 UTC 2024 - 3.2K bytes - Viewed (0)