- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for getContentAsString (0.08 seconds)
-
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() { if (contentCache == null) { if (contentException != null) { throw new CurlException("Failed to access the content.", contentException); }Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 6.8K bytes - Click Count (0) -
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); } })); } /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 6.2K bytes - Click Count (0) -
README.md
.header("Accept", "application/json") .execute()) { 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\"}")
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 2.5K bytes - Click Count (0)