Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getRequestMethod (0.07 seconds)

  1. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

            public void connect() {
            }
    
            @Override
            public int getResponseCode() {
                return statusCode;
            }
    
            @Override
            public String getRequestMethod() {
                return "HEAD";
            }
    
            @Override
            public InputStream getInputStream() {
                throw new AssertionError("HEAD request should not read input stream");
            }
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 44.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/curl/CurlRequest.java

                    throw new CurlException("Failed to access the response.", e);
                }
                writeContent(() -> {
                    try {
                        if (Method.HEAD.toString().equalsIgnoreCase(con.getRequestMethod())) {
                            return new ByteArrayInputStream(new byte[0]);
                        } else if (con.getResponseCode() < 400) {
                            if (GZIP.equals(con.getContentEncoding())) {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 19.7K bytes
    - Click Count (0)
Back to Top