Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Post (0.23 sec)

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

            .build(),
        )
        val ipAddress = InetAddress.getLoopbackAddress().hostAddress
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/").newBuilder().host(ipAddress!!).build())
              .build(),
          )
        val response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("abc")
        response.body.close()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

          .isEqualTo(parse("http://host/path"))
        assertThat(parse("http:\\\\host/path"))
          .isEqualTo(parse("http://host/path"))
        assertThat(parse("http:///host/path"))
          .isEqualTo(parse("http://host/path"))
        assertThat(parse("http:\\//host/path"))
          .isEqualTo(parse("http://host/path"))
        assertThat(parse("http:/\\/host/path"))
          .isEqualTo(parse("http://host/path"))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

                },
            ),
          )
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("ABCDE")
        val request = server.takeRequest()
        assertThat(request.requestLine).isEqualTo("POST /foo HTTP/1.1")
        assertArrayEquals(postBytes, request.body.readByteArray())
        assertThat(request.headers["Content-Length"]).isNull()
      }
    
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_3x.md

        Duplex calls require HTTP/2. If HTTP/1 is established instead the duplex call will fail. The
        most common use of duplex calls is [gRPC][grpc_http2].
    
     *  New: Prevent OkHttp from retransmitting a request body by overriding `RequestBody.isOneShot()`.
        This is most useful when writing the request body is destructive.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * Sets the socket factory and trust manager used to secure HTTPS connections. If unset, the
         * system defaults will be used.
         *
         * Most applications should not call this method, and instead use the system defaults. Those
         * classes include special optimizations that can be lost if the implementations are decorated.
         *
         * If necessary, you can create and configure the defaults yourself with the following code:
         *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

              )
          }
    
        /**
         * @param host either a regular hostname, International Domain Name, IPv4 address, or IPv6
         * address.
         */
        fun host(host: String) =
          apply {
            val encoded =
              host.percentDecode().toCanonicalHost()
                ?: throw IllegalArgumentException("unexpected host: $host")
            this.host = encoded
          }
    
        fun port(port: Int) =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  7. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        set("b", "bb", "bbb")
    
        // Cause the cache trim job to fail.
        filesystem.setFaultyDelete(cacheDir / "a.0", true)
        taskFaker.runNextTask()
    
        // An edit should now add a job to clean up if the most recent trim failed.
        assertThat(cache.edit("b")).isNull()
        taskFaker.runNextTask()
    
        // Confirm a successful cache trim now allows edits.
        filesystem.setFaultyDelete(cacheDir / "a.0", false)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  8. okhttp/api/okhttp.api

    	public final fun -deprecated_encodedQuery ()Ljava/lang/String;
    	public final fun -deprecated_encodedUsername ()Ljava/lang/String;
    	public final fun -deprecated_fragment ()Ljava/lang/String;
    	public final fun -deprecated_host ()Ljava/lang/String;
    	public final fun -deprecated_password ()Ljava/lang/String;
    	public final fun -deprecated_pathSegments ()Ljava/util/List;
    	public final fun -deprecated_pathSize ()I
    	public final fun -deprecated_port ()I
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val stream = connection.newStream(headerEntries("a", "android"), false)
        assertThat(connection.peerSettings.initialWindowSize).isEqualTo(3368)
        // New Stream is has the most recent initial window size.
        assertThat(stream.writeBytesTotal).isEqualTo(0L)
        assertThat(stream.writeBytesMaximum).isEqualTo(3368L)
      }
    
      @Test fun peerHttp2ServerZerosCompressionTable() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top