public abstract class HttpHeaders extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
getContentLength(HttpMessage message)
Returns the
Content-Length header value |
static Map<String,List<String>> |
getHeaders(HttpMessage message)
Return all headers of HTTP message as a map
|
static HttpHeader |
parse(String header)
Parse the specified string as a HTTP header
|
public static Map<String,List<String>> getHeaders(HttpMessage message)
message - The HTTP messagepublic static long getContentLength(HttpMessage message)
Content-Length header valuemessage - The HTTP messagepublic static HttpHeader parse(String header)
header - A string representing a HTTP headerHttpHeaderCopyright © 2015–2017 SDKLite. All rights reserved.