Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for startsWith (0.37 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

              message.startsWith("System property ") -> Type.Setup
              message.startsWith("Reload ") -> Type.Setup
              message == "No session to resume." -> Type.Handshake
              message.startsWith("Consuming ") -> Type.Handshake
              message.startsWith("Produced ") -> Type.Handshake
              message.startsWith("Negotiated ") -> Type.Handshake
              message.startsWith("Found resumable session") -> Type.Handshake
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

     * limitations under the License.
     */
    package okhttp3.compare
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.startsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import org.apache.hc.client5.http.classic.methods.HttpGet
    import org.apache.hc.client5.http.impl.classic.HttpClients
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

          fileSystem.source(publicSuffixListDotDat).buffer().use { source ->
            while (!source.exhausted()) {
              var rule: ByteString = source.readUtf8LineStrict().toRule() ?: continue
    
              if (rule.startsWith(EXCEPTION_RULE_MARKER)) {
                rule = rule.substring(1)
                // We use '\n' for end of value.
                totalExceptionRuleBytes += rule.size + 1
                sortedExceptionRules.add(rule)
              } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

        while (pos < limit) {
          pairEnd = header.delimiterOffset(";,", pos, limit)
          val equalsSign = header.delimiterOffset('=', pos, pairEnd)
          val name = header.trimSubstring(pos, equalsSign)
          if (name.startsWith("$")) {
            pos = pairEnd + 1
            continue
          }
    
          // We have either name=value or just a name.
          var value =
            if (equalsSign < pairEnd) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:10:43 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

            }
    
            fun assertCorrectParameters(subProjectName: String, functionalTests: List<BaseGradleBuildType>) {
                functionalTests.forEach { assertTrue(it.getGradleTasks().startsWith("clean $subProjectName")) }
                if (functionalTests.size == 1) {
                    assertFalse(functionalTests[0].getGradleParams().contains("-PincludeTestClasses"))
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Jan 02 10:00:06 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

          if (i == limit) break
        } else if (b != 0) {
          // Group separator ":" delimiter.
          if (input.startsWith(":", startIndex = i)) {
            i++
          } else if (input.startsWith(".", startIndex = i)) {
            // If we see a '.', rewind to the beginning of the previous group and parse as IPv4.
            if (!decodeIpv4Suffix(input, groupOffset, limit, address, b - 2)) return null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

              // Plaintext after DECRYPTION
              val message = record.message
              val parameters = record.parameters
    
              if (parameters != null && !message.startsWith("Raw") && !message.startsWith("Plaintext")) {
                if (verbose) {
                  println(record.message)
                  println(record.parameters[0])
                }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

        val value =
          when {
            token == null -> {
              // Value is "double-quoted". That's valid and our regex group already strips the quotes.
              parameter.groups[3]!!.value
            }
            token.startsWith("'") && token.endsWith("'") && token.length > 2 -> {
              // If the token is 'single-quoted' it's invalid! But we're lenient and strip the quotes.
              token.substring(1, token.length - 1)
            }
    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)
  9. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.startsWith
    import kotlin.test.assertFailsWith
    import kotlin.test.fail
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.internal.idn.Punycode
    import okio.Buffer
    import okio.ByteString
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

        }
      }
    
      @JvmStatic
      fun assumeNotWindows() {
        assumeFalse(windows, "This test fails on Windows.")
      }
    
      @JvmStatic
      val windows: Boolean
        get() = System.getProperty("os.name", "?").startsWith("Windows")
    
      /**
       * Make assertions about the suppressed exceptions on this. Prefer this over making direct calls
       * so tests pass on GraalVM, where suppressed exceptions are silently discarded.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top