org.carrot2.util.httpclient.HttpHeaders Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carrot2-mini Show documentation
Show all versions of carrot2-mini Show documentation
Carrot2 search results clustering framework. Minimal functional subset
(core algorithms and infrastructure, no document sources).
/*
* Carrot2 project.
*
* Copyright (C) 2002-2019, Dawid Weiss, Stanisław Osiński.
* All rights reserved.
*
* Refer to the full license file "carrot2.LICENSE"
* in the root folder of the repository checkout or at:
* http://www.carrot2.org/carrot2.LICENSE
*/
package org.carrot2.util.httpclient;
import org.apache.http.Header;
import org.apache.http.message.BasicHeader;
/**
* Some commonly used HTTP headers.
*/
public class HttpHeaders
{
/** HTTP header for url-encoded content type. */
public static final Header URL_ENCODED = new BasicHeader("Content-type",
"application/x-www-form-urlencoded; charset=UTF-8");
/** HTTP header for declaring allowed GZIP encoding. */
public static final Header GZIP_ENCODING = new BasicHeader("Accept-Encoding", "gzip");
/**
* HTTP header faking Mozilla as the user agent.
*/
public static final Header USER_AGENT_HEADER_MOZILLA = new BasicHeader("User-Agent",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221");
private HttpHeaders()
{
}
}