All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.dongliu.requests.HttpHeaders Maven / Gradle / Ivy

There is a newer version: 5.0.8
Show newest version
package net.dongliu.requests;

/**
 * Utils for header
 *
 * @author Liu Dong
 */
public class HttpHeaders {
    public static final String NAME_AUTHORIZATION = "Authorization";
    public static final String NAME_PROXY_AUTHORIZATION = "Proxy-Authorization";
    public static final String NAME_USER_AGENT = "User-Agent";
    public static final String NAME_ACCEPT_ENCODING = "Accept-Encoding";
    public static final String NAME_CONTENT_TYPE = "Content-Type";
    public static final String NAME_COOKIE = "Cookie";
    public static final String NAME_SET_COOKIE = "Set-Cookie";
    public static final String NAME_CONTENT_ENCODING = "Content-Encoding";
    public static final String NAME_LOCATION = "Location";

    public static final String CONTENT_TYPE_FORM_ENCODED = "application/x-www-form-urlencoded";
    public static final String CONTENT_TYPE_JSON = "application/json";
    public static final String CONTENT_TYPE_TEXT = "plain/text";
    public static final String CONTENT_TYPE_BINARY = "application/octet-stream";

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy