- Sort Score
- Num 10 results
- Language All
Results 791 - 800 of 1,050 for buildTar (0.26 seconds)
-
samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt
platform.expectFailureOnJdkVersion(8) val httpClient = HttpClient .newBuilder() .followRedirects(NORMAL) .build() server.enqueue( MockResponse .Builder() .body("hello, Java HTTP Client") .build(), ) val request = HttpRequest .newBuilder(server.url("/").toUri()) .header("Accept", "text/plain") .build()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 25 13:16:02 GMT 2026 - 2.6K bytes - Click Count (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractRepositoryTestCase.java
return session.build(); } public static RemoteRepository newTestRepository() throws MalformedURLException { return new RemoteRepository.Builder( "repo", "default", getTestFile("target/test-classes/repo").toURI().toURL().toString()) .build(); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.7K bytes - Click Count (0) -
android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt
import org.junit.Before import org.junit.Test abstract class BaseOkHttpClientUnitTest { private lateinit var client: OkHttpClient @Before fun setUp() { client = OkHttpClient .Builder() .cache(Cache(FakeFileSystem(), "/cache".toPath(), 10_000_000)) .build() } @Test fun testRequestExternal() { assumeNetwork()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jul 22 20:03:31 GMT 2025 - 2.3K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/guide/PostExample.java
final OkHttpClient client = new OkHttpClient(); String post(String url, String json) throws IOException { RequestBody body = RequestBody.create(json, JSON); Request request = new Request.Builder() .url(url) .post(body) .build(); try (Response response = client.newCall(request).execute()) { return response.body().string(); } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java
private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { final PipeBody pipeBody = new PipeBody(); Request request = new Request.Builder() .url("https://api.github.com/markdown/raw") .post(pipeBody) .build(); streamPrimesToSinkAsynchronously(pipeBody.sink());
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jul 06 03:18:15 GMT 2018 - 3.1K bytes - Click Count (0) -
guava/src/com/google/common/base/Supplier.java
import org.jspecify.annotations.Nullable; /** * Legacy version of {@link java.util.function.Supplier java.util.function.Supplier}. Semantically, * this could be a factory, generator, builder, closure, or something else entirely. No guarantees * are implied by this interface. * * <p>The {@link Suppliers} class provides common suppliers and related utilities. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jun 19 17:20:48 GMT 2025 - 2.5K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/ClingSupport.java
return new JLineMessageBuilderFactory(); } protected abstract Invoker createInvoker(); protected abstract Parser createParser(); protected abstract ParserRequest.Builder createParserRequestBuilder(String[] args);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Feb 08 16:25:25 GMT 2025 - 3.6K bytes - Click Count (0) -
tensorflow/c/eager/abstract_context.h
// lifetime through ref counting. Thus clients MUST call Release() in order to // destroy an instance of this class. virtual void Release() = 0; // Creates an operation builder and ties it to this context. // The returned object can be used for setting operation's attributes, // adding inputs and finally executing (immediately or lazily as in tracing) // it in this context.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 3K bytes - Click Count (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
import okio.Path.Companion.toOkioPath import okio.buffer import okio.source /** * Utilities for reading HPACK tests. */ object HpackJsonUtil { @Suppress("unused") private val MOSHI = Moshi .Builder() .add( object : Any() { @ToJson fun byteStringToJson(byteString: ByteString) = byteString.hex() @FromJson fun byteStringFromJson(json: String) = json.decodeHex() },Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.3K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt
} } } val file = File("docs/images/logo-square.png") val requestBody: RequestBody = file.asRequestBody(MEDIA_TYPE_PNG) val request = Request .Builder() .header("Authorization", "Client-ID $IMGUR_CLIENT_ID") .url("https://api.imgur.com/3/image") .post(ProgressRequestBody(requestBody, progressListener)) .build()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Aug 30 17:01:12 GMT 2025 - 3.8K bytes - Click Count (0)