- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getContentAsString (0.06 sec)
-
src/main/java/org/codelibs/fess/helper/NotificationHelper.java
} } else { logger.warn("Failed to send {} to {}. HTTP Status is {}. {}", body, url, response.getHttpStatusCode(), response.getContentAsString()); } } catch (final IOException e) { logger.warn("Failed to send {} to {}.", body, url, e); } })); } /**
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlTest.java
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 8.8K bytes - Viewed (0) -
README.md
.header("Accept", "application/json") .executeSync()) { System.out.println("Status: " + response.getHttpStatusCode()); System.out.println(response.getContentAsString()); } ``` ### Asynchronous request ```java import org.codelibs.curl.Curl; Curl.post("https://api.example.com/items") .body("{\"name\":\"item1\"}")
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:11:14 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlResponse.java
/** * Gets the content of the response as a string. * * @return the content as a string. * @throws CurlException if an error occurs while accessing the content. */ public String getContentAsString() { final byte[] bytes = new byte[4096]; try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream()); ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 6.8K bytes - Viewed (0)