Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getHeaderFields (0.31 seconds)

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

            public InputStream getErrorStream() {
                throw new AssertionError("HEAD request should not read error stream");
            }
    
            @Override
            public Map<String, List<String>> getHeaderFields() {
                return Collections.emptyMap();
            }
        }
    
        @Test
        public void test_HeadRequestWith200_ReturnsEmptyBody() throws Exception {
            // ## Arrange ##
    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

                try {
                    response.setEncoding(encoding);
                    response.setHttpStatusCode(con.getResponseCode());
                    response.setHeaders(con.getHeaderFields());
                } catch (final Exception e) {
                    throw new CurlException("Failed to access the response.", e);
                }
                writeContent(() -> {
                    try {
    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