Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for commentstring (0.29 sec)

  1. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

    import okhttp3.internal.commonNoCache
    import okhttp3.internal.commonNoStore
    import okhttp3.internal.commonNoTransform
    import okhttp3.internal.commonOnlyIfCached
    import okhttp3.internal.commonParse
    import okhttp3.internal.commonToString
    
    /**
     * A Cache-Control header with cache directives from a server or client. These directives set policy
     * on what responses can be stored, and which requests can be satisfied by those stored responses.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Request.kt

    import okhttp3.internal.commonPatch
    import okhttp3.internal.commonPost
    import okhttp3.internal.commonPut
    import okhttp3.internal.commonRemoveHeader
    import okhttp3.internal.commonTag
    import okhttp3.internal.commonToString
    
    /**
     * An HTTP request. Instances of this class are immutable if their [body] is null or itself
     * immutable.
     */
    class Request internal constructor(builder: Builder) {
      @get:JvmName("url")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

      return other is Headers && namesAndValues.contentEquals(other.namesAndValues)
    }
    
    internal fun Headers.commonHashCode(): Int = namesAndValues.contentHashCode()
    
    internal fun Headers.commonToString(): String {
      return buildString {
        for (i in 0 until size) {
          val name = name(i)
          val value = value(i)
          append(name)
          append(": ")
          append(if (isSensitiveHeader(name)) "██" else value)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-ChallengeCommon.kt

    }
    
    fun Challenge.commonHashCode(): Int {
      var result = 29
      result = 31 * result + scheme.hashCode()
      result = 31 * result + authParams.hashCode()
      return result
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Headers.kt

    import okhttp3.internal.commonName
    import okhttp3.internal.commonNewBuilder
    import okhttp3.internal.commonRemoveAll
    import okhttp3.internal.commonSet
    import okhttp3.internal.commonToHeaders
    import okhttp3.internal.commonToString
    import okhttp3.internal.commonValue
    import okhttp3.internal.commonValues
    import okhttp3.internal.headersCheckName
    import okhttp3.internal.http.toHttpDateOrNull
    import okhttp3.internal.http.toHttpDateString
    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)
  6. okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt

          when {
            tags.isEmpty() -> mutableMapOf<KClass<*>, Any>().also { tags = it }
            else -> tags as MutableMap<KClass<*>, Any>
          }
        mutableTags[type] = tag
      }
    }
    
    fun Request.commonToString(): String =
      buildString {
        append("Request{method=")
        append(method)
        append(", url=")
        append(url)
        if (headers.size != 0) {
          append(", headers=[")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Response.kt

    import okhttp3.internal.commonNewBuilder
    import okhttp3.internal.commonPriorResponse
    import okhttp3.internal.commonProtocol
    import okhttp3.internal.commonRemoveHeader
    import okhttp3.internal.commonRequest
    import okhttp3.internal.commonToString
    import okhttp3.internal.commonTrailers
    import okhttp3.internal.connection.Exchange
    import okhttp3.internal.http.parseChallenges
    import okio.Buffer
    
    /**
    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)
  8. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

     */
    @file:Suppress("ktlint:standard:filename")
    
    package okhttp3.internal
    
    import kotlin.time.Duration.Companion.seconds
    import okhttp3.CacheControl
    import okhttp3.Headers
    
    internal fun CacheControl.commonToString(): String {
      var result = headerValue
      if (result == null) {
        result =
          buildString {
            if (noCache) append("no-cache, ")
            if (noStore) append("no-store, ")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

          return parameterNamesAndValues[i + 1]
        }
      }
      return null
    }
    
    internal fun MediaType.commonEquals(other: Any?): Boolean = other is MediaType && other.mediaType == mediaType
    
    internal fun MediaType.commonToString(): String = mediaType
    
    internal fun MediaType.commonHashCode(): Int = mediaType.hashCode()
    
    private const val TOKEN = "([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)"
    private const val QUOTED = "\"([^\"]*)\""
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

          result = CacheControl.parse(headers)
          lazyCacheControl = result
        }
        return result
      }
    
    fun Response.commonClose() {
      body.close()
    }
    
    fun Response.commonToString(): String = "Response{protocol=$protocol, code=$code, message=$message, url=${request.url}}"
    
    fun Response.Builder.commonRequest(request: Request) =
      apply {
        this.request = request
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
Back to top