Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for trimMargin (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

          | * Response.networkResponse
          | * Response.priorResponse
          | * EventSourceListener
          | * WebSocketListener
          |(It is safe to call contentType() and contentLength() on these response bodies.)
          """.trimMargin(),
        )
      }
    
      override fun timeout() = Timeout.NONE
    
      override fun close() {
      }
    }
    
    fun Response.stripBody(): Response {
      return newBuilder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

          |0
          |TLSv1.2
          |
          |
          """.trimMargin()
        val entryBody = "abc"
        val journalBody =
          """
          |libcore.io.DiskLruCache
          |1
          |201105
          |2
          |
          |DIRTY $urlKey
          |CLEAN $urlKey ${entryMetadata.length} ${entryBody.length}
          |
          """.trimMargin()
        fileSystem.createDirectory(cache.directoryPath)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

              |data: 73857293
              |
              |event: remove
              |data: 2153
              |
              |event: add
              |data: 113411
              |
              |
              """.trimMargin(),
              8,
            )
            .build(),
        )
        val response = client.newCall(request().build()).execute()
        response.body.close()
        networkLogs
          .assertLogEqual("--> GET $url http/1.1")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

                |    certificate: ${CertificatePinner.pin(cert)}
                |    DN: ${cert.subjectDN.name}
                |    subjectAltNames: ${OkHostnameVerifier.allSubjectAltNames(cert)}
                """.trimMargin(),
              )
            } else {
              throw SSLPeerUnverifiedException(
                "Hostname ${address.url.host} not verified (no certificates)",
              )
            }
          }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_4x.md

            |-----BEGIN PRIVATE KEY-----
            |MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCA7ODT0xhGSNn4ESj6J
            |lu/GJQZoU9lDrCPeUcQ28tzOWw==
            |-----END PRIVATE KEY-----
            """.trimMargin())
        val handshakeCertificates = HandshakeCertificates.Builder()
            .heldCertificate(heldCertificate)
            .build()
        val server = MockWebServer()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

          writeUtf8(
            // No trailing newline.
            """
            |${DiskLruCache.MAGIC}
            |${DiskLruCache.VERSION_1}
            |100
            |2
            |
            |CLEAN k1 1 1
            """.trimMargin(),
          )
        }
        createNewCache()
        assertThat(cache["k1"]).isNull()
    
        // The journal is not corrupt when editing after a truncated line.
        set("k1", "C", "D")
        cache.close()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  7. docs/recipes.md

            val postBody = """
                |Releases
                |--------
                |
                | * _1.0_ May 6, 2013
                | * _1.1_ June 15, 2013
                | * _1.2_ August 11, 2013
                |""".trimMargin()
    
            val request = Request.Builder()
                .url("https://api.github.com/markdown/raw")
                .post(postBody.toRequestBody(MEDIA_TYPE_MARKDOWN))
                .build()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
Back to top