Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for toMatch (0.16 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/PostPath.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    import okio.Path.Companion.toPath
    import okio.buffer
    import okio.fakefilesystem.FakeFileSystem
    
    class PostPath {
      private val client = OkHttpClient()
      private val fileSystem = FakeFileSystem()
      val path = "test.json".toPath()
    
      fun run() {
        fileSystem.write(path) {
          writeUtf8("{}")
        }
    
        val request =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

    import okio.Path
    import okio.Path.Companion.toPath
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    @Tag("Slow")
    class OsgiTest {
      private lateinit var testResourceDir: Path
      private lateinit var workspaceDir: Path
    
      @BeforeEach
      fun setUp() {
        testResourceDir = "./build/resources/test/okhttp3/osgi".toPath()
        workspaceDir = testResourceDir / "workspace"
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/idn/StringprepTest.kt

    import okio.Buffer
    import okio.ByteString.Companion.decodeHex
    import okio.FileSystem
    import okio.Path.Companion.toPath
    import org.junit.Test
    
    class StringprepTest {
      private val reader = StringprepTablesReader(FileSystem.RESOURCES)
      private val rfc3491 = reader.readNameprep("/okhttp3/internal/idn".toPath())
      private val stringPrep =
        Stringprep(
          unassigned = RangeListCodePointSet(listOf()),
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

    import assertk.assertions.isGreaterThan
    import assertk.assertions.isLessThan
    import kotlin.test.assertEquals
    import kotlin.test.assertFailsWith
    import okio.Buffer
    import okio.FileSystem
    import okio.Path.Companion.toPath
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    
    /** Confirm we get the expected table whether we build it from the .txt file or compact that. */
    class IdnaMappingTableTest {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

    import java.util.concurrent.atomic.AtomicBoolean
    import okhttp3.internal.and
    import okhttp3.internal.platform.Platform
    import okio.FileSystem
    import okio.GzipSource
    import okio.Path
    import okio.Path.Companion.toPath
    import okio.buffer
    
    /**
     * A database of public suffixes provided by [publicsuffix.org][publicsuffix_org].
     *
     * [publicsuffix_org]: https://publicsuffix.org/
     */
    class PublicSuffixDatabase internal constructor(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheTest.kt

    import okhttp3.testing.PlatformRule
    import okio.Buffer
    import okio.FileSystem
    import okio.ForwardingFileSystem
    import okio.GzipSink
    import okio.Path
    import okio.Path.Companion.toPath
    import okio.buffer
    import okio.fakefilesystem.FakeFileSystem
    import okio.use
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

    import okio.BufferedSink
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.FileSystem
    import okio.Path
    import okio.Path.Companion.toPath
    import okio.buffer
    import okio.gzip
    
    /**
     * Downloads the public suffix list from https://publicsuffix.org/list/public_suffix_list.dat and
     * transforms the file into an efficient format used by OkHttp.
     *
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 6K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilCommon.kt

     * limitations under the License.
     */
    package okhttp3
    
    import okio.Buffer
    import okio.Path
    import okio.Path.Companion.toPath
    
    val okHttpRoot: Path
      get() = getEnv("OKHTTP_ROOT")!!.toPath()
    
    fun String(vararg codePoints: Int): String {
      val buffer = Buffer()
      for (codePoint in codePoints) {
        buffer.writeUtf8CodePoint(codePoint)
      }
      return buffer.readUtf8()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 931 bytes
    - Viewed (0)
  9. samples/tlssurvey/src/main/kotlin/okhttp3/survey/RunSurvey.kt

    import okhttp3.survey.types.SuiteId
    import okio.FileSystem
    import okio.Path.Companion.toPath
    import org.conscrypt.Conscrypt
    
    @Suppress("ktlint:standard:property-naming")
    suspend fun main() {
      val includeConscrypt = false
    
      val client =
        OkHttpClient.Builder()
          .cache(Cache(FileSystem.SYSTEM, "build/okhttp_cache".toPath(), 100_000_000))
          .build()
    
      val sslLabsClients = SslLabsClient(client).clients()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

    import kotlin.test.assertEquals
    import kotlin.test.assertFailsWith
    import okhttp3.internal.toCanonicalHost
    import okio.Buffer
    import okio.FileSystem
    import okio.GzipSource
    import okio.Path.Companion.toPath
    import okio.buffer
    import okio.use
    import org.junit.jupiter.api.Test
    
    class PublicSuffixDatabaseTest {
      private val publicSuffixDatabase = PublicSuffixDatabase()
    
      @Test fun longestMatchWins() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.3K bytes
    - Viewed (0)
Back to top