Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Add (0.14 sec)

  1. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        val base = parse("http://host/a/b/c")
    
        // Add a string with zero slashes: resulting URL gains one slash.
        assertThat(base.newBuilder().addPathSegments("").build().encodedPath)
          .isEqualTo("/a/b/c/")
        assertThat(base.newBuilder().addPathSegments("d").build().encodedPath)
          .isEqualTo("/a/b/c/d")
    
        // Add a string with one slash: resulting URL gains two slashes.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

            val equalsOffset = indexOf('=', pos)
            if (equalsOffset == -1 || equalsOffset > ampersandOffset) {
              result.add(substring(pos, ampersandOffset))
              result.add(null) // No value for this name.
            } else {
              result.add(substring(pos, equalsOffset))
              result.add(substring(equalsOffset + 1, ampersandOffset))
            }
            pos = ampersandOffset + 1
          }
          return result
    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)
  3. docs/changelogs/changelog_3x.md

        consuming it. This may be handy for interceptors!
     *  New: `HttpUrl.newBuilder()` resolves a link to a builder.
     *  New: Add the TLS version to the `Handshake`.
     *  New: Drop `Request.uri()` and `Request#urlString()`. Just use
        `Request.url().uri()` and `Request.url().toString()`.
     *  New: Add URL to HTTP response logging.
     *  New: Make `HttpUrl` the blessed URL method of `Request`.
    
    
    ## Version 2.x
    
    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)
  4. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

                connection: Connection,
              ) {
                connections.add(connection as RealConnection)
              }
            },
          ).build()
        val call1 = localClient.newCall(Request(server.url("/")))
        val response1 = call1.execute()
        assertThat(response1.body.string()).isEqualTo("ABC")
    
        // Add delays for DISCONNECT_AT_END to propogate
        waitForConnectionShutdown(connections[0])
    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)
  5. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        createNewCacheWithSize(Int.MAX_VALUE)
      }
    
      private fun createNewCacheWithSize(maxSize: Int) {
        cache =
          DiskLruCache(filesystem, cacheDir, appVersion, 2, maxSize.toLong(), taskRunner).also {
            toClose.add(it)
          }
        synchronized(cache) { cache.initialize() }
      }
    
      fun setUp(
        baseFilesystem: FileSystem,
        windows: Boolean,
      ) {
        this.cacheDir =
    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)
  6. okhttp/api/okhttp.api

    }
    
    public final class okhttp3/Headers$Builder {
    	public fun <init> ()V
    	public final fun add (Ljava/lang/String;)Lokhttp3/Headers$Builder;
    	public final fun add (Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;
    	public final fun add (Ljava/lang/String;Ljava/time/Instant;)Lokhttp3/Headers$Builder;
    	public final fun add (Ljava/lang/String;Ljava/util/Date;)Lokhttp3/Headers$Builder;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * You can customize a shared OkHttpClient instance with [newBuilder]. This builds a client that
     * shares the same connection pool, thread pools, and configuration. Use the builder methods to
     * add configuration to the derived client for a specific purpose.
     *
     * This example shows the single instance with default configurations.
     *
     * ```java
     * public final OkHttpClient client = new OkHttpClient.Builder()
    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)
  8. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

          assertThat(streamId).isEqualTo(2)
          events.add(requestHeaders)
          notifyAll()
          return false
        }
    
        @Synchronized override fun onHeaders(
          streamId: Int,
          responseHeaders: List<Header>,
          last: Boolean,
        ): Boolean {
          assertThat(streamId).isEqualTo(2)
          assertThat(last).isTrue()
          events.add(responseHeaders)
          notifyAll()
          return false
    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