- Sort Score
- Result 10 results
- Languages All
Results 541 - 550 of 926 for Executed (0.05 sec)
-
okhttp/src/test/java/okhttp3/internal/http/ExternalHttp2Example.kt
.build() val call = client.newCall( Request.Builder() .url("https://www.google.ca/") .build(), ) val response = call.execute() try { println(response.code) println("PROTOCOL ${response.protocol}") var line: String? while (response.body.source().readUtf8Line().also { line = it } != null) { println(line)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/OkHttpClientTest.java
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://google.com/robots.txt") .build(); try (Response response = client.newCall(request).execute()) { assertEquals(200, response.code()); assertEquals(Protocol.HTTP_2, response.protocol()); } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Nov 14 17:38:22 UTC 2020 - 1.4K bytes - Viewed (0) -
istioctl/cmd/istioctl/main.go
fmt.Fprintf(os.Stderr, "Could not initialize: %v\n", err) exitCode := cmd.GetExitCode(err) os.Exit(exitCode) } rootCmd := cmd.GetRootCmd(os.Args[1:]) log.EnableKlogWithCobra() if err := rootCmd.Execute(); err != nil { exitCode := cmd.GetExitCode(err) os.Exit(exitCode) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.1K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AcceptedRegressionsRulePostProcess.java
import java.util.HashSet; import java.util.Set; public class AcceptedRegressionsRulePostProcess implements PostProcessViolationsRule { @Override @SuppressWarnings("unchecked") public void execute(ViolationCheckContextWithViolations context) { Set<ApiChange> acceptedApiChanges = (Set<ApiChange>) context.getUserData().get("acceptedApiChanges");
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jun 09 08:16:49 UTC 2021 - 1.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AcceptedRegressionsRuleSetup.java
this.acceptedApiChanges = AcceptedApiChanges.fromAcceptedChangesMap(acceptedApiChanges).keySet(); } @Override @SuppressWarnings("unchecked") public void execute(ViolationCheckContext context) { Map<String, Object> userData = (Map<String, Object>) context.getUserData(); userData.put("acceptedApiChanges", acceptedApiChanges);
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/PurgeThumbnailJob.java
public class PurgeThumbnailJob { private static final Logger logger = LogManager.getLogger(PurgeThumbnailJob.class); private long expiry = 30 * 24 * 60 * 60 * 1000L; public String execute() { try { final long count = ComponentUtil.getThumbnailManager().purge(getExpiry()); return "Deleted " + count + " thumbnail files."; } catch (final Exception e) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt
.header("User-Agent", "OkHttp Headers.java") .addHeader("Accept", "application/json; q=0.5") .addHeader("Accept", "application/vnd.github.v3+json") .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println("Server: ${response.header("Server")}") println("Date: ${response.header("Date")}")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java
System.out.println("REQUEST 1 (new connection)"); try (Response response = client.newCall(request).execute()) { // Consume and discard the response body. response.body().source().readByteString(); } System.out.println("REQUEST 2 (pooled connection)"); try (Response response = client.newCall(request).execute()) { // Consume and discard the response body. response.body().source().readByteString(); }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 16 23:20:49 UTC 2020 - 5.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/PurgeDocJob.java
import org.opensearch.index.query.QueryBuilders; public class PurgeDocJob { private static final Logger logger = LogManager.getLogger(PurgeDocJob.class); public String execute() { final SearchEngineClient searchEngineClient = ComponentUtil.getSearchEngineClient(); final FessConfig fessConfig = ComponentUtil.getFessConfig(); final StringBuilder resultBuf = new StringBuilder();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.8K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostFile.java
.url("https://api.github.com/markdown/raw") .post(RequestBody.create(file, MEDIA_TYPE_MARKDOWN)) .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat May 25 18:02:55 UTC 2019 - 1.5K bytes - Viewed (0)