- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 64 for esbuild (0.28 sec)
-
okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt
import org.junit.jupiter.api.fail class ExecuteAsyncTest { @RegisterExtension val clientTestRule = OkHttpClientTestRule() private var client = clientTestRule.newClientBuilder().build() private lateinit var server: MockWebServer val request by lazy { Request(server.url("/")) } @BeforeEach fun setup(server: MockWebServer) { this.server = server } @Test
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:24:38 GMT 2024 - 5.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java
}; private final OkHttpClient client = new OkHttpClient.Builder() .addNetworkInterceptor(CHECK_HANDSHAKE_INTERCEPTOR) .build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) {
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 2.1K bytes - Viewed (0) -
samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java
import okhttp3.ResponseBody; public class OkHttpContributors { private static final String ENDPOINT = "https://api.github.com/repos/square/okhttp/contributors"; private static final Moshi MOSHI = new Moshi.Builder().build(); private static final JsonAdapter<List<Contributor>> CONTRIBUTORS_JSON_ADAPTER = MOSHI.adapter( Types.newParameterizedType(List.class, Contributor.class)); static class Contributor { String login;
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.2K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
.url("$scheme://$authority/") .headers(request.headers) .build() val fancyResponse = Response.Builder() .code(webSocketResponse.code) .message(webSocketResponse.message) .headers(webSocketResponse.headers) .request(fancyRequest) .protocol(Protocol.HTTP_1_1) .build() val connectionClose = CountDownLatch(1) val streams =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 37.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt
conditionalRequestHeaders.addLenient(conditionName, conditionValue!!) val conditionalRequest = request.newBuilder() .headers(conditionalRequestHeaders.build()) .build() return CacheStrategy(conditionalRequest, cacheResponse) } /** * Returns the number of milliseconds that the response was fresh for, starting from the served * date.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 12K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/guide/GetExample.java
import okhttp3.Response; public class GetExample { final OkHttpClient client = new OkHttpClient(); String run(String url) throws IOException { Request request = new Request.Builder() .url(url) .build(); try (Response response = client.newCall(request).execute()) { return response.body().string(); } } public static void main(String[] args) throws IOException {
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 1.3K bytes - Viewed (0) -
okhttp/api/okhttp.api
public final fun sMaxAgeSeconds ()I public fun toString ()Ljava/lang/String; } public final class okhttp3/CacheControl$Builder { public fun <init> ()V public final fun build ()Lokhttp3/CacheControl; public final fun immutable ()Lokhttp3/CacheControl$Builder; public final fun maxAge (ILjava/util/concurrent/TimeUnit;)Lokhttp3/CacheControl$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) -
okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt
override fun close() { } } fun Response.stripBody(): Response { return newBuilder() .body(UnreadableResponseBody(body.contentType(), body.contentLength())) .build() } val Response.commonIsSuccessful: Boolean get() = code in 200..299 fun Response.commonHeaders(name: String): List<String> = headers.values(name) @JvmOverloads fun Response.commonHeader(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 5.2K bytes - Viewed (0) -
.github/workflows/build.yml
uses: gradle/actions/setup-gradle@v3 - name: Build okcurl run: ./gradlew okcurl:nativeImage - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - name: Build ConsoleLauncher run: ./gradlew -PgraalBuild=true native-image-tests:nativeImage - name: Run Checks run: ./native-image-tests/build/graal/ConsoleLauncher testandroid:
Others - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 01:51:50 GMT 2024 - 17.2K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
url.newBuilder() .addQueryParameter("hostname", hostname).build(), ) .post(query.toRequestBody(DNS_MESSAGE)) } else { val encoded = query.base64Url().replace("=", "") val requestUrl = url.newBuilder().addQueryParameter("dns", encoded).build() url(requestUrl) } }.build() class Builder { internal var client: OkHttpClient? = null
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Mar 22 07:09:21 GMT 2024 - 9.8K bytes - Viewed (0)