Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    import java.util.Collections.unmodifiableMap
    import java.util.Locale.US
    import kotlin.text.Charsets.ISO_8859_1
    import okhttp3.internal.commonEquals
    import okhttp3.internal.commonHashCode
    import okhttp3.internal.commonToString
    
    /**
     * An [RFC 7235][rfc_7235] challenge.
     *
     * [rfc_7235]: https://tools.ietf.org/html/rfc7235
     */
    class Challenge(
      /** Returns the authentication scheme, like `Basic`. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/MediaType.kt

    import okhttp3.internal.commonHashCode
    import okhttp3.internal.commonParameter
    import okhttp3.internal.commonToMediaType
    import okhttp3.internal.commonToMediaTypeOrNull
    import okhttp3.internal.commonToString
    
    /**
     * An [RFC 2045][rfc_2045] Media Type, appropriate to describe the content type of an HTTP request
     * or response body.
     *
     * [rfc_2045]: http://tools.ietf.org/html/rfc2045
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top