Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for buildString (0.39 sec)

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

          try {
            response = chain.proceed(request)
          } catch (e: Exception) {
            val tookMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
            logger.log(
              buildString {
                append("<-- HTTP FAILED: $e.")
                append(" ${redactUrl(request.url)} (${tookMs}ms)")
              },
            )
            throw e
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RequestLine.kt

       * [HttpURLConnection.getHeaderFields], so it needs to be set even if the transport is
       * HTTP/2.
       */
      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))
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 17 00:47:36 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

        replaceWith = ReplaceWith(expression = "cacheControl"),
        level = DeprecationLevel.ERROR,
      )
      fun cacheControl(): CacheControl = cacheControl
    
      override fun toString(): String =
        buildString(32) {
          append("Request{method=")
          append(method)
          append(", url=")
          append(url)
          if (headers.size != 0) {
            append(", headers=[")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
Back to top