package de.jeha.kame.crawler.core.types;

import java.util.HashMap;
import java.util.Map;

/**
 * @author jenshadlich@googlemail.com
 */
public class Headers {

    public static final String CACHE_CONTROL = "Cache-Control";
    public static final String CONTENT_TYPE = "Content-Type";
    public static final String CONTENT_LENGTH = "Content-Length";
    public static final String PRAGMA = "Pragma";
    public static final String SERVER = "Server";
    public static final String X_ROBOTS_TAG = "X-Robots-Tag";

    private final Map<String, String> headers = new HashMap<>();

    public Headers(Map<String, String> headers) {
        this.headers.putAll(headers);
    }

    public void put(String key, String value) {
        headers.put(key, value);
    }

    public String get(String key) {
        return headers.get(key);
    }

    public String getContentType() {
        return headers.get(CONTENT_TYPE);
    }

}

@@ -261,94 +261,502 @@
 ENT_
-TYPE = %22Content-Type%22;%0A    public static final String CONTENT_LENGTH = %22Content-Length
+ENCODING = %22Content-Encoding%22;%0A    public static final String CONTENT_LANGUAGE = %22Content-Language%22;%0A    public static final String CONTENT_TYPE = %22Content-Type%22;%0A    public static final String CONTENT_LENGTH = %22Content-Length%22;%0A    public static final String DATE = %22Date%22;%0A    public static final String ETAG = %22ETag%22;%0A    public static final String EXPIRES = %22Expires%22;%0A    public static final String LAST_MODIFIED = %22Last-Modified%22;%0A    public static final String RETRY_AFTER = %22Retry-After
 %22;%0A 
@@ -915,16 +915,86 @@
 ts-Tag%22;
+%0A    public static final String WWW_AUTHENTICATE = %22WWW-Authenticate%22;
 %0A%0A    pr

add more header constants