Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for CurlRequest (0.23 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: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/curl/CurlRequestTest.java

            CurlRequest request = new CurlRequest(Method.GET, "https://example.com");
            SSLSocketFactory factory = (SSLSocketFactory) SSLSocketFactory.getDefault();
    
            CurlRequest result = request.sslSocketFactory(factory);
    
            assertSame(request, result); // Fluent API
        }
    
        @Test
        public void testBodyStringMethod() {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. 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: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/curl/CurlTest.java

            // ## Act ##
            final CurlRequest request = Curl.get(url);
    
            // ## Assert ##
            assertNotNull(request);
            assertEquals(Method.GET, request.method());
        }
    
        @Test
        public void test_PostFactoryMethod() {
            // ## Arrange ##
            final String url = "http://example.com";
    
            // ## Act ##
            final CurlRequest request = Curl.post(url);
    
            // ## Assert ##
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/CurlHelperTest.java

                return null;
            }
        }
    
        private CurlRequest callProtectedRequest(CurlHelper curlHelper, CurlRequest request) {
            try {
                java.lang.reflect.Method method = CurlHelper.class.getDeclaredMethod("request", CurlRequest.class);
                method.setAccessible(true);
                return (CurlRequest) method.invoke(curlHelper, request);
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  7. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  9. 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: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat May 10 01:44:04 UTC 2025
    - 3.4K 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: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:11:14 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top