// Copyright 2014, Kevin Ko <kevin@faveset.com>

package com.faveset.khttp;

// This contains all header fields defined in RFC2616.
class HeaderField {
    public static class Entity {
        public static final String ALLOW = "Allow";
        public static final String CONTENT_ENCODING = "Content-Encoding";
        public static final String CONTENT_LANGUAGE = "Content-Language";
        public static final String CONTENT_LENGTH = "Content-Length";
        public static final String CONTENT_LOCATION = "Content-Location";
        public static final String CONTENT_MD5 = "Content-MD5";
        public static final String CONTENT_RANGE = "Content-Range";
        public static final String CONTENT_TYPE = "Content-Type";
        public static final String EXPIRES = "Expires";
        public static final String LAST_MODIFIED = "Last-Modified";
    }

    public static class General {
        public static final String CACHE_CONTROL = "Cache-Control";
        public static final String CONNECTION = "Connection";
        public static final String DATE = "Date";
        public static final String PRAGMA = "Pragma";
        public static final String TRAILER = "Trailer";
        public static final String TRANSFER_ENCODING = "Transfer-Encoding";
        public static final String UPGRADE = "Upgrade";
        public static final String VIA = "Via";
        public static final String WARNING = "Warning";
    }

    public static class Request {
        public static final String ACCEPT = "Accept";
        public static final String ACCEPT_CHARSET = "Accept-Charset";
        public static final String ACCEPT_ENCODING = "Accept-Encoding";
        public static final String ACCEPT_LANGUAGE = "Accept-Language";
        public static final String AUTHORIZATION = "Authorization";
        public static final String EXPECT = "Expect";
        public static final String FROM = "From";
        public static final String HOST = "Host";
        public static final String IF_MATCH = "If-Match";
        public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
        public static final String IF_NONE_MATCH = "If-None-Match";
        public static final String IF_RANGE = "If-Range";
        public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
        public static final String MAX_FORWARDS = "Max-Forwards";
        public static final String PROXY_AUTHORIZATION = "Proxy-Authorization";
        public static final String RANGE = "Range";
        public static final String REFERER = "Referer";
        public static final String TE = "TE";
        public static final String USER_AGENT = "User-Agent";
    }
}

@@ -2649,11 +2649,597 @@
 %22;%0A    %7D
+%0A%0A    public static class Response %7B%0A        public static final String ACCEPT_RANGES = %22Accept-Ranges%22;%0A        public static final String AGE = %22Age%22;%0A        public static final String ETAG = %22ETag%22;%0A        public static final String LOCATION = %22Location%22;%0A        public static final String PROXY_AUTHENTICATE = %22Proxy-Authenticate%22;%0A        public static final String RETRY_AFTER = %22Retry-After%22;%0A        public static final String SERVER = %22Server%22;%0A        public static final String VARY = %22Vary%22;%0A        public static final String WWW_AUTHENTICATE = %22WWW-Authenticate%22;%0A    %7D
 %0A%7D%0A

Add response headers.