Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Resource (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * address, the two URLs identify different resources.
     *
     * ### Port
     *
     * The port used to connect to the web server. By default this is 80 for HTTP and 443 for HTTPS.
     * This class never returns -1 for the port: if no port is explicitly specified in the URL then the
     * scheme's default is used.
     *
     * ### Path
     *
     * The path identifies a specific resource on the host. Paths have a hierarchical structure like
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  2. docs/changelogs/changelog_3x.md

        a `Content-Length`.
     *  Fix: Don't crash if the thread is interrupted while reading the public
        suffix database.
     *  Fix: Use relative resource path when loading the public suffix database.
        Loading the resource using a path relative to the class prevents conflicts
        when the OkHttp classes are relocated (shaded) by allowing multiple private
        copies of the database.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      private fun Snapshot.assertValue(
        index: Int,
        value: String,
      ) {
        getSource(index).use { source ->
          assertThat(sourceAsString(source)).isEqualTo(value)
          assertThat(getLength(index)).isEqualTo(value.length.toLong())
        }
      }
    
      private fun sourceAsString(source: Source) = source.buffer().readUtf8()
    
      private fun Editor.assertInoperable() {
    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)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * The read timeout is applied to both the TCP socket and for individual read IO operations
         * including on [Source] of the [Response]. The default value is 10 seconds.
         *
         * @see Socket.setSoTimeout
         * @see Source.timeout
         */
        fun readTimeout(
          timeout: Long,
          unit: TimeUnit,
        ) = apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(stream.readBytes.total).isEqualTo(0L)
        assertThat(stream.takeHeaders()).isEqualTo(headersOf("a", "android"))
        val source = stream.getSource()
        val buffer = Buffer()
        buffer.writeAll(source)
        assertThat(source.read(buffer, 1)).isEqualTo(-1)
        assertThat(buffer.size).isEqualTo(150)
        val synStream = peer.takeFrame()
        assertThat(synStream.type).isEqualTo(Http2.TYPE_HEADERS)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top