List of usage examples for org.eclipse.jgit.util HttpSupport HDR_ACCEPT_ENCODING
String HDR_ACCEPT_ENCODING
To view the source code for org.eclipse.jgit.util HttpSupport HDR_ACCEPT_ENCODING.
Click Source Link
From source file:org.webcat.core.http.RequestUtils.java
License:Open Source License
/** * Gets a value indicating whether the specified request can accept a * response that is GZIP encoded./* w w w . jav a2 s . c o m*/ * * @param request the request * @return true if the request accepts a GZIP-encoded response; otherwise, * false */ public static boolean acceptsGZIPEncoding(WORequest request) { String accepts = request.headerForKey(HttpSupport.HDR_ACCEPT_ENCODING); return accepts != null && accepts.contains(HttpSupport.ENCODING_GZIP); }