Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for CurlRequest (0.04 sec)

  1. src/main/java/org/codelibs/curl/CurlRequest.java

         * @return this CurlRequest instance
         */
        public CurlRequest compression(final String compression) {
            this.compression = compression;
            return this;
        }
    
        /**
         * Sets the SSL socket factory for secure connections.
         *
         * @param sslSocketFactory the SSL socket factory
         * @return this CurlRequest instance
         */
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/curl/CurlRequestTest.java

            // Test RequestProcessor with different encodings
            CurlRequest.RequestProcessor processor1 = new CurlRequest.RequestProcessor("UTF-8", 1024);
            CurlRequest.RequestProcessor processor2 = new CurlRequest.RequestProcessor("ISO-8859-1", 2048);
            CurlRequest.RequestProcessor processor3 = new CurlRequest.RequestProcessor("UTF-16", 512);
    
            assertNotNull(processor1.getResponse());
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/CurlTest.java

            final String emptyUrl = "";
            final CurlRequest getRequest = Curl.get(emptyUrl);
            final CurlRequest postRequest = Curl.post(emptyUrl);
            final CurlRequest putRequest = Curl.put(emptyUrl);
            final CurlRequest deleteRequest = Curl.delete(emptyUrl);
            final CurlRequest headRequest = Curl.head(emptyUrl);
            final CurlRequest optionsRequest = Curl.options(emptyUrl);
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/curl/Curl.java

         * @return a new CurlRequest object configured with the PUT method and the specified URL
         */
        public static CurlRequest put(final String url) {
            return new CurlRequest(Method.PUT, url);
        }
    
        /**
         * Creates a new CurlRequest with the DELETE method for the specified URL.
         *
         * @param url the URL to which the DELETE request will be sent
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/sereq/AdminSereqAction.java

            }
    
            final CurlRequest curlRequest = getCurlRequest(header);
            if (curlRequest == null) {
                final String msg = header;
                throwValidationError(messages -> messages.addErrorsInvalidHeaderForRequestFile(GLOBAL, msg), () -> asListHtml(this::saveToken));
            } else {
                try (final CurlResponse response = curlRequest.body(buf.toString()).execute()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/CurlHelper.java

         * @return the configured CurlRequest
         */
        public CurlRequest post(final String path) {
            return request(Method.POST, path).header("Content-Type", "application/json");
        }
    
        /**
         * Creates a PUT request for the specified path.
         * @param path the request path
         * @return the configured CurlRequest
         */
        public CurlRequest put(final String path) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

            final Method httpMethod = Method.valueOf(request.getMethod().toUpperCase(Locale.ROOT));
            final CurlRequest curlRequest = ComponentUtil.getCurlHelper().request(httpMethod, path);
    
            final String contentType = request.getHeader("Content-Type");
            if (StringUtil.isNotEmpty(contentType)) {
                curlRequest.header("Content-Type", contentType);
            }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.curl.io;
    
    import org.codelibs.curl.Curl;
    import org.codelibs.curl.CurlRequest;
    import org.junit.Test;
    
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.HttpURLConnection;
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Sat May 10 01:44:04 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. CLAUDE.md

    ## Architecture
    
    ### Core Components
    
    - **`org.codelibs.curl.Curl`**: Static entry point providing factory methods for all HTTP methods (GET, POST, PUT, DELETE, HEAD, OPTIONS, CONNECT, TRACE)
    - **`org.codelibs.curl.CurlRequest`**: Fluent request builder supporting parameters, headers, body content, SSL config, proxies, timeouts, and caching
    - **`org.codelibs.curl.CurlResponse`**: Response wrapper implementing `Closeable` for proper resource management
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  10. README.md

            error -> error.printStackTrace());
    ```
    
    ## API Overview
    
    - `org.codelibs.curl.Curl`: entry point for HTTP methods (GET, POST, PUT, DELETE, HEAD, OPTIONS, CONNECT, TRACE).
    - `org.codelibs.curl.CurlRequest`: builder for HTTP requests.
    - `org.codelibs.curl.CurlResponse`: wrapper for HTTP responses.
    - `org.codelibs.curl.CurlException`: unchecked exception for errors.
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top