Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 617 for Executed (0.06 sec)

  1. samples/guide/src/main/java/okhttp3/guide/PostExample.java

        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();
        }
      }
    
      String bowlingJson(String player1, String player2) {
        return "{'winCondition':'HIGH_SCORE',"
            + "'name':'Bowling',"
            + "'round':4,"
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt

            }
          }
    
        val request =
          Request(
            url = "https://api.github.com/markdown/raw".toHttpUrl(),
            body = requestBody,
          )
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    
      companion object {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/curl/CurlTest.java

    import org.junit.Test;
    
    public class CurlTest {
        private static final Logger logger = Logger.getLogger(CurlTest.class.getName());
    
        @Test
        public void test_Get() {
            Curl.get("https://www.codelibs.org/").execute(response -> {
                final String content = response.getContentAsString();
                logger.info(content);
                assertTrue(content.length() > 0);
            }, e -> {
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/PostForm.kt

            .build()
        val request =
          Request(
            url = "https://en.wikipedia.org/w/index.php".toHttpUrl(),
            body = formBody,
          )
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    }
    
    fun main() {
      PostForm().run()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/SynchronousGet.kt

      private val client = OkHttpClient()
    
      fun run() {
        val request =
          Request
            .Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          for ((name, value) in response.headers) {
            println("$name: $value")
          }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/AdminAction.java

        //                                                                      Search Execute
        //                                                                      ==============
        /**
         * Show the index page.
         * @return The HTML response.
         */
        @Execute
        @Secured({ //
                AdminDashboardAction.ROLE, //
                AdminDashboardAction.ROLE + VIEW, //
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/score/ScoreBooster.java

                    .setQuery(QueryBuilders.termQuery(fessConfig.getIndexFieldUrl(), url))
                    .setFetchSource(false)
                    .setSize(fessConfig.getPageScoreBoosterMaxFetchSizeAsInteger())
                    .execute()
                    .actionGet(requestTimeout);
            return Arrays.stream(response.getHits().getHits()).map(SearchHit::getId).toArray(n -> new String[n]);
        };
    
        /**
         * A function to handle requests.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  9. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

            .build();
        Request request = new Request.Builder()
            .url(url)
            .build();
        Call call = httpClient.newCall(request);
        try (Response response = call.execute()) {
          JsonAdapter<OAuthSession> jsonAdapter = moshi.adapter(OAuthSession.class);
          return jsonAdapter.fromJson(response.body().source());
        }
      }
    
      /** See https://api.slack.com/methods/rtm.start. */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jul 06 19:30:55 UTC 2018
    - 4.4K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/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()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
Back to top