- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,518 for REQUEST (0.1 sec)
-
okhttp/src/test/java/okhttp3/DuplexTest.kt
.addHeader("h2", "v2") .streamHandler(body) .build(), ) val request = Request.Builder() .url(server.url("/")) .method("POST", AsyncRequestBody()) .build() val call = client.newCall(request) call.execute().use { response -> val sink = (request.body as AsyncRequestBody?)!!.takeSink() sink.writeUtf8("hey\n")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 23.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallKotlinTest.kt
client.newCall(request).execute().use { assertEquals(204, it.code) } request = Request.Builder() .url(endpointUrl) .header("Content-Type", "application/xml") .put(ErringRequestBody()) .build() assertFailsWith<IOException> { client.newCall(request).execute() } request = Request.Builder() .url(endpointUrl) .head()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/features/interceptors.md
```java class LoggingInterceptor implements Interceptor { @Override public Response intercept(Interceptor.Chain chain) throws IOException { Request request = chain.request(); long t1 = System.nanoTime(); logger.info(String.format("Sending request %s on %s%n%s", request.url(), chain.connection(), request.headers()));
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 8.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt
} @Test fun defaultConfigIsNoTimeout() { val request = Request.Builder() .url(server.url("/")) .build() val call = client.newCall(request) assertThat(call.timeout().timeoutNanos()).isEqualTo(0) } @Test fun configureClientDefault() { val request = Request.Builder() .url(server.url("/")) .build() val timeoutClient =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java
throws MavenExecutionException { List<MavenProject> result = projects; if (request.getResumeFrom() != null && !request.getResumeFrom().isEmpty()) { File reactorDirectory = projectSelector.getBaseDirectoryFromRequest(request); String selector = request.getResumeFrom();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 18.6K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
server.enqueue(MockResponse()) val request = Request.Builder().url(server.url("/")).build() client.newCall(request).execute().use { assertEquals(200, it.code) assertEquals(listOf<Certificate>(), it.handshake?.peerCertificates) } } @Test fun testRequestUsesAndroidConscrypt() { assumeNetwork() val request = Request.Builder().url("https://facebook.com/robots.txt").build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestTest.kt
val method = "PUT" val request = Request( url = url, headers = headers, method = method, body = body, ) assertThat(request.url).isEqualTo(url) assertThat(request.headers).isEqualTo(headers) assertThat(request.method).isEqualTo(method) assertThat(request.body).isEqualTo(body) assertThat(request.tags).isEmpty() } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt
request: Request, proxyType: Proxy.Type, ): Boolean { return !request.isHttps && proxyType == Proxy.Type.HTTP } /** * Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request * URL is. Includes the query component if it exists. */ fun requestPath(url: HttpUrl): String { val path = url.encodedPath val query = url.encodedQuery
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/json/SearchApiManager.java
this.request = request; } protected static RequestParameter parse(final HttpServletRequest request) { final String query = request.getParameter("q"); final String[] tags = getParamValueArray(request, "label"); final String[] fields = getParamValueArray(request, "field"); final String numStr = request.getParameter("num");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 12 01:54:46 UTC 2024 - 50.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
} } // Make the first request waiting until we get our auth challenge. val request = Request(server.url("/")) blockingAuthClient.newCall(request).enqueue(callback) val response1 = responses.take() assertThat(response1).isEqualTo("") assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0)