Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for body (0.22 sec)

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

      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();
        }
      }
    
      String bowlingJson(String player1, String player2) {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java

            Elements bodyContent = document.body().children().remove();
            document.body().prepend("<div class='container'/>");
            document.body().children().get(0).html(bodyContent.outerHtml());
        }
    
        private void addTOC(Document document) {
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Apr 25 04:49:56 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java

        try (Response response = client.newCall(request).execute()) {
          // Deserialize HTTP response to concrete type.
          ResponseBody body = response.body();
          List<Contributor> contributors = CONTRIBUTORS_JSON_ADAPTER.fromJson(body.source());
    
          // Sort list by the most contributions.
          Collections.sort(contributors, (c1, c2) -> c2.contributions - c1.contributions);
    
    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)
  4. src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java

        String CRAWLER_DOCUMENT_FILE_APPEND_META_CONTENT = "crawler.document.file.append.meta.content";
    
        /** The key of the configuration. e.g. true */
        String CRAWLER_DOCUMENT_FILE_APPEND_BODY_CONTENT = "crawler.document.file.append.body.content";
    
        /** The key of the configuration. e.g.  */
        String CRAWLER_DOCUMENT_FILE_DEFAULT_LANG = "crawler.document.file.default.lang";
    
        /** The key of the configuration. e.g.  */
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Apr 11 02:34:53 GMT 2024
    - 459.2K bytes
    - Viewed (4)
  5. src/main/java/org/codelibs/fess/app/web/admin/upgrade/AdminUpgradeAction.java

            return null;
        }
    
        private void sendDictionaryContent(final String path, final String content) {
            try (CurlResponse response = ComponentUtil.getCurlHelper().post("/_configsync/file").param("path", path).body(content).execute()) {
                if (response.getHttpStatusCode() == 200) {
                    logger.info("Updated {}", path);
                } else if (response.getContentException() != null) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Sat Apr 13 11:43:03 GMT 2024
    - 46.9K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/guide/GetExample.java

      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 {
        GetExample example = new GetExample();
        String response = example.run("https://raw.github.com/square/okhttp/master/README.md");
    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)
  7. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new CheckHandshake().run();
      }
    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)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       * If we make these calls inline inside toImmutableSortedMultiset, we get an Animal Sniffer error,
       * despite the @IgnoreJRERequirement annotation there. My assumption is that, because javac
       * generates a synthetic method for the body of the lambda, the actual method calls that Animal
       * Sniffer is flagging don't appear inside toImmutableSortedMultiset but rather inside that
       * synthetic method. By moving those calls to a named method, we're able to apply
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
Back to top