Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for commonTag (0.14 sec)

  1. 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)
  2. 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)
Back to top