AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
静态 Public 成员函数 | 所有成员列表
com.ab.network.toolbox.HttpHeaderParser类 参考

静态 Public 成员函数

static Cache.Entry parseCacheHeaders (NetworkResponse response)
 
static long parseDateAsEpoch (String dateStr)
 
static String parseCharset (Map< String, String > headers)
 

详细描述

Utility methods for parsing HTTP headers.

成员函数说明

static Cache.Entry com.ab.network.toolbox.HttpHeaderParser.parseCacheHeaders ( NetworkResponse  response)
inlinestatic

Extracts a Cache.Entry from a NetworkResponse.

参数
responseThe network response to parse headers from
返回
a cache entry for the given response, or null if the response is not cacheable.
static String com.ab.network.toolbox.HttpHeaderParser.parseCharset ( Map< String, String >  headers)
inlinestatic

Returns the charset specified in the Content-Type of this header, or the HTTP default (ISO-8859-1) if none can be found.

static long com.ab.network.toolbox.HttpHeaderParser.parseDateAsEpoch ( String  dateStr)
inlinestatic

Parse date in RFC1123 format, and return its value as epoch


该类的文档由以下文件生成: