- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 4,533 for http2 (0.02 sec)
-
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
} @Test fun testNoUncompress() { val response = response("https://httpbin.org/brotli", "XXXX".encodeUtf8()) val same = brotliInterceptor.decompress(response) val responseString = same.body.string() assertThat(responseString).isEqualTo("XXXX") } @Test fun testFailsUncompress() { val response = response("https://httpbin.org/brotli", "bb919aaa06e8".decodeHex()) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 22 08:12:58 UTC 2025 - 4.4K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/OkHttpClientTest.java
import org.junit.Test; import org.junit.runner.RunWith; /** * OkHttp. * * https://square.github.io/okhttp/ */ @RunWith(AndroidJUnit4.class) public class OkHttpClientTest { @Test public void get() throws IOException { OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://google.com/robots.txt") .build();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Nov 14 17:38:22 UTC 2020 - 1.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/PublicInternalApiTest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3 import okhttp3.internal.http.HttpMethod.permitsRequestBody import okhttp3.internal.http.HttpMethod.requiresRequestBody import okhttp3.internal.http.hasBody import org.junit.jupiter.api.Assertions.assertFalse import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.5K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
Request( url = "https://url-host.com:${server.port}/".toHttpUrl(), headers = headersOf("Host", "header-host"), ), ) val response = call.execute() assertThat(response.isSuccessful).isTrue() val recordedRequest = server.takeRequest() assertThat(recordedRequest.url.host).isEqualTo("header-host") // https://github.com/bcgit/bc-java/issues/1773
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6.3K bytes - Viewed (0) -
mockwebserver/README.md
============= A scriptable web server for testing HTTP clients ### Motivation This library makes it easy to test that your app Does The Right Thing when it makes HTTP and HTTPS calls. It lets you specify which responses to return and then verify that requests were made as expected. Because it exercises your full HTTP stack, you can be confident that you're testing everything. You can even copy & paste HTTP responses from your real web
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jul 19 13:40:52 UTC 2025 - 8.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
rawSocket.closeQuietly() } } } /** Does all the work necessary to build a full HTTP or HTTPS connection on a raw socket. */ @Throws(IOException::class) private fun connectSocket() { val rawSocket = when (route.proxy.type()) { Proxy.Type.DIRECT, Proxy.Type.HTTP -> route.address.socketFactory.createSocket()!! else -> JavaNetSocket(route.proxy) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/BouncyCastleTest.kt
platform.assumeBouncyCastle() } @Test fun testMozilla() { assumeNetwork() val request = Request.Builder().url("https://mozilla.org/robots.txt").build() client.newCall(request).execute().use { assertThat(it.protocol).isEqualTo(Protocol.HTTP_2) assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3) } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 1.6K bytes - Viewed (0) -
okhttp/src/jvmTest/resources/web-platform-test-urltestdata.txt
a:\t\sfoo.com s:a p:\sfoo.com http://f:21/\sb\s?\sd\s#\se\s s:http h:f port:21 p:/%20b%20 q:?%20d%20 f:#\se http://f:/c s:http h:f p:/c http://f:0/c s:http h:f port:0 p:/c http://f:00000000000000/c s:http h:f port:0 p:/c http://f:00000000000000000000080/c s:http h:f p:/c http://f:b/c http://f:\s/c http://f:\n/c s:http h:f p:/c http://f:fifty-two/c http://f:999999/c s:http h:f port:999999 p:/c http://f:\s21\s/\sb\s?\sd\s#\se\s
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 14.3K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt
import mockwebserver3.junit5.StartStop import org.apache.hc.client5.http.classic.methods.HttpGet import org.apache.hc.client5.http.impl.classic.HttpClients import org.apache.hc.core5.http.io.entity.EntityUtils import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.Test /** * Apache HttpClient 5.x. * * https://hc.apache.org/httpcomponents-client-5.0.x/index.html *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 2.1K bytes - Viewed (0) -
docs/works_with_okhttp.md
* [okhttp-digest](https://github.com/rburgst/okhttp-digest): A digest authenticator for OkHttp. * [OkHttp Idling Resource](https://github.com/JakeWharton/okhttp-idling-resource): An Espresso IdlingResource for OkHttp. * [okhttp-client-mock](https://github.com/gmazzo/okhttp-client-mock): A simple OKHttp client mock, using a programmable request interceptor.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Feb 15 16:18:51 UTC 2025 - 3.9K bytes - Viewed (0)