Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for append (0.22 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

          logger.log(
            buildString {
              append("<-- ${response.code}")
              if (response.message.isNotEmpty()) append(" ${response.message}")
              append(" ${redactUrl(response.request.url)} (${tookMs}ms")
              if (!logHeaders) append(", $bodySize body")
              append(")")
            },
          )
    
          if (logHeaders) {
            val headers = response.headers
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

            upstreamBuffer.copyTo(sink, 0, bytesRead)
            sourcePos += bytesRead
    
            // Append the upstream bytes to the file.
            fileOperator!!.write(
              FILE_HEADER_SIZE + upstreamPos,
              upstreamBuffer.clone(),
              upstreamBytesRead,
            )
    
            synchronized(this@Relay) {
              // Append new upstream bytes into the buffer. Trim it to its max size.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

          buildString {
            if (noCache) append("no-cache, ")
            if (noStore) append("no-store, ")
            if (maxAgeSeconds != -1) append("max-age=").append(maxAgeSeconds).append(", ")
            if (sMaxAgeSeconds != -1) append("s-maxage=").append(sMaxAgeSeconds).append(", ")
            if (isPrivate) append("private, ")
            if (isPublic) append("public, ")
            if (mustRevalidate) append("must-revalidate, ")
    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)
  4. okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt

    fun Request.commonToString(): String =
      buildString {
        append("Request{method=")
        append(method)
        append(", url=")
        append(url)
        if (headers.size != 0) {
          append(", headers=[")
          headers.forEachIndexed { index, (name, value) ->
            if (index > 0) {
              append(", ")
            }
            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
    - 4.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

       */
      fun get(
        request: Request,
        proxyType: Proxy.Type,
      ): String =
        buildString {
          append(request.method)
          append(' ')
          if (includeAuthorityInRequestLine(request, proxyType)) {
            append(request.url)
          } else {
            append(requestPath(request.url))
          }
          append(" HTTP/1.1")
        }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/StatusLine.kt

      @JvmField val message: String,
    ) {
      override fun toString(): String {
        return buildString {
          if (protocol == Protocol.HTTP_1_0) {
            append("HTTP/1.0")
          } else {
            append("HTTP/1.1")
          }
          append(' ').append(code)
          append(' ').append(message)
        }
      }
    
      companion object {
        fun get(response: Response): StatusLine {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

          buildString {
            append("Certificate pinning failure!")
            append("\n  Peer certificate chain:")
            for (element in peerCertificates) {
              append("\n    ")
              append(pin(element))
              append(": ")
              append(element.subjectDN.name)
            }
            append("\n  Pinned certificates for ")
            append(hostname)
            append(":")
            for (pin in pins) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

    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)
          append("\n")
        }
      }
    }
    
    internal fun commonHeadersGet(
      namesAndValues: Array<String>,
      name: String,
    ): String? {
    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)
  9. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

            if (scheme != null) {
              append(scheme)
              append("://")
            } else {
              append("//")
            }
    
            if (encodedUsername.isNotEmpty() || encodedPassword.isNotEmpty()) {
              append(encodedUsername)
              if (encodedPassword.isNotEmpty()) {
                append(':')
                append(encodedPassword)
              }
              append('@')
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/Route.kt

              else -> append(" via proxy ")
            }
    
            when {
              socketHostname == null -> append("<unresolved>")
              ':' in socketHostname -> append("[").append(socketHostname).append("]")
              else -> append(socketHostname)
            }
            append(":")
            append(socketAddress.port)
          }
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top