Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for tmp (0.14 sec)

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

            return@use it.body.string()
          }
    
        println("Response 2 equals Response 1? " + (response1Body == response2Body))
      }
    }
    
    fun main() {
      CacheResponse(File("CacheResponse.tmp")).run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (2)
  2. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    ///test  s:file p:/test
    file://test  s:file h:test p:/
    file://localhost  s:file h:localhost p:/
    file://localhost/  s:file h:localhost p:/
    file://localhost/test  s:file h:localhost p:/test
    test  s:file p:/tmp/mock/test
    file:test  s:file p:/tmp/mock/test
    
    # Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/path.js
    http://example.com/././foo about:blank s:http h:example.com p:/foo
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          }
          return result.toString()
        }
      }
    
      /**
       * Tests that use this will fail unless boot classpath is set. Ex. `-Xbootclasspath/p:/tmp/alpn-boot-8.0.0.v20140317`
       */
      private fun enableProtocol(protocol: Protocol) {
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

     *
     * Steps to run in your own code
     *
     * 1. In your main method `WireSharkListenerFactory.register()`
     * 2. Create Listener factory `val eventListenerFactory = WireSharkListenerFactory(
    logFile = File("/tmp/key.log"), tlsVersions = tlsVersions, launch = launch)`
     * 3. Register with `client.eventListenerFactory(eventListenerFactory)`
     * 4. Launch wireshark if not done externally `val process = eventListenerFactory.launchWireShark()`
     */
    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)
  5. okhttp/src/test/java/okhttp3/RequestTest.kt

        assertThat(bodyToHex(body)).isEqualTo("48656c6c6f")
        assertThat(bodyToHex(body), "Retransmit body").isEqualTo("48656c6c6f")
      }
    
      @Test
      fun file() {
        val file = File.createTempFile("RequestTest", "tmp")
        val writer = FileWriter(file)
        writer.write("abc")
        writer.close()
        val contentType = "text/plain".toMediaType()
        val body: RequestBody = file.asRequestBody(contentType)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. kotlin-js-store/yarn.lock

      dependencies:
        "@jridgewell/source-map" "^0.3.3"
        acorn "^8.8.2"
        commander "^2.20.0"
        source-map-support "~0.5.20"
    
    tmp@^0.2.1:
      version "0.2.1"
      resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.1.tgz#8457fc3037dcf4719c251367a1af6500ee1ccf14"
      integrity sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==
      dependencies:
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 87.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

       *
       * The journal file is appended to as cache operations occur. The journal may occasionally be
       * compacted by dropping redundant lines. A temporary file named "journal.tmp" will be used during
       * compaction; that file should be deleted if it exists when the cache is opened.
       */
    
      private val journalFile: Path
      private val journalFileTmp: Path
      private val journalFileBackup: Path
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        creator.newSink(0).buffer().use {
          it.writeUtf8("Hello")
        }
    
        // Simulate a severe Filesystem failure on the first initialization.
        filesystem.setFaultyDelete(cacheDir / "k1.0.tmp", true)
        filesystem.setFaultyDelete(cacheDir, true)
        cache =
          DiskLruCache(filesystem, cacheDir, appVersion, 2, Int.MAX_VALUE.toLong(), taskRunner).also {
            toClose.add(it)
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

      private lateinit var protocol: Protocol
      private lateinit var client: OkHttpClient
      private val fileSystem: FakeFileSystem = FakeFileSystem()
      private val cache: Cache = Cache(fileSystem, "/tmp/cache".toPath(), Long.MAX_VALUE)
      private lateinit var scheme: String
    
      private fun configureClientTestRule(): OkHttpClientTestRule {
        val clientTestRule = OkHttpClientTestRule()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/DuplexTest.kt

        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("success")
      }
    
      /**
       * Tests that use this will fail unless boot classpath is set. Ex. `-Xbootclasspath/p:/tmp/alpn-boot-8.0.0.v20140317`
       */
      private fun enableProtocol(protocol: Protocol) {
        enableTls()
        client =
          client.newBuilder()
            .protocols(listOf(protocol, Protocol.HTTP_1_1))
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
Back to top