- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for ContentCache (0.47 sec)
-
src/main/java/org/codelibs/curl/io/ContentCache.java
* {@code * // In-memory caching * byte[] data = "example data".getBytes(); * try (ContentCache cache = new ContentCache(data)) { * InputStream inputStream = cache.getInputStream(); * // Read from inputStream * } * * // File-based caching * File file = new File("example.txt"); * try (ContentCache cache = new ContentCache(file)) { * InputStream inputStream = cache.getInputStream(); * // Read from inputStreamRegistered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 4.1K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlResponse.java
* * @param contentCache the content cache to set. */ public void setContentCache(final ContentCache contentCache) { this.contentCache = contentCache; } /** * Gets the HTTP status code of the response. * * @return the HTTP status code. */ public int getHttpStatusCode() { return httpStatusCode; } /**Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Mon Nov 24 03:10:07 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
@Test public void testContentCache() { CurlResponse response = new CurlResponse(); byte[] data = "test content".getBytes(); ContentCache cache = new ContentCache(data); response.setContentCache(cache); // ContentCache is not directly accessible, but we can test through content methods assertNotNull(response); } @TestRegistered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
@Test public void testMemoryBasedCacheConstructor() { byte[] data = "Hello, World!".getBytes(); ContentCache cache = new ContentCache(data); assertNotNull(cache); } @Test public void testMemoryBasedCacheConstructorWithNull() { try { new ContentCache((byte[]) null); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) {Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
} dfos.flush(); final ContentCache contentCache; logger.fine(() -> "Response in " + (dfos.isInMemory() ? "Memory" : "File")); if (dfos.isInMemory()) { contentCache = new ContentCache(dfos.getData()); } else { contentCache = new ContentCache(dfos.getFile()); }Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Mon Nov 24 03:10:07 UTC 2025 - 18.6K bytes - Viewed (0) -
CLAUDE.md
- **`org.codelibs.curl.CurlException`**: Unchecked exception for HTTP errors ### I/O Layer - **`org.codelibs.curl.io.ContentCache`**: Handles automatic in-memory or on-disk caching of request/response bodies - **`org.codelibs.curl.io.ContentOutputStream`**: Streaming utilities for efficient content handling ### Key Design Patterns
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Mon Nov 24 03:10:07 UTC 2025 - 3.2K bytes - Viewed (0) -
README.md
- `org.codelibs.curl.CurlRequest`: builder for HTTP requests. - `org.codelibs.curl.CurlResponse`: wrapper for HTTP responses. - `org.codelibs.curl.CurlException`: unchecked exception for errors. - `org.codelibs.curl.io.ContentCache` and `ContentOutputStream`: internal utilities for streaming and caching. Refer to the Javadoc for full API details. ## Building and Testing ```bash git clone https://github.com/codelibs/curl4j.git cd curl4j
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 2.5K bytes - Viewed (0)