- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for commonTag (0.15 sec)
-
okhttp/src/main/kotlin/okhttp3/Request.kt
*/ fun <T : Any> tag( type: KClass<T>, tag: T?, ): Builder = commonTag(type, type.cast(tag)) /** Attaches [tag] to the request using `Object.class` as a key. */ open fun tag(tag: Any?): Builder = commonTag(Any::class, tag) /** * Attaches [tag] to the request using [type] as a key. Tags can be read from a
Registered: Sun Jun 16 04:42:17 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
require(HttpMethod.permitsRequestBody(method)) { "method $method must not have a request body." } } this.method = method this.body = body } 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> =
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
src/net/addrselect.go
// problems (see issues 13283 and 18518), so limit to IPv6. if DA.To4() == nil && DB.To4() == nil { commonA := commonPrefixLen(SourceDA, DA) commonB := commonPrefixLen(SourceDB, DB) if commonA > commonB { return preferDA } if commonA < commonB { return preferDB } } // Rule 10: Otherwise, leave the order unchanged.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 00:24:06 UTC 2024 - 9.7K bytes - Viewed (0) -
cmd/erasure-healing-common.go
func commonTime(modTimes []time.Time, quorum int) time.Time { if modTime, count := commonTimeAndOccurrence(modTimes, 0); count >= quorum { return modTime } return timeSentinel } func commonETag(etags []string, quorum int) string { if etag, count := commonETags(etags); count >= quorum { return etag } return "" } // Beginning of unix time is treated as sentinel value here. var (
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 12.5K bytes - Viewed (0)