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

Public 成员函数

 NetworkResponse (int statusCode, byte[] data, Map< String, String > headers, boolean notModified)
 
 NetworkResponse (byte[] data)
 
 NetworkResponse (byte[] data, Map< String, String > headers)
 

Public 属性

final int statusCode
 
final byte[] data
 
final Map< String, String > headers
 
final boolean notModified
 

详细描述

Data and headers returned from Network#performRequest(Request).

构造及析构函数说明

com.ab.network.toolbox.NetworkResponse.NetworkResponse ( int  statusCode,
byte[]  data,
Map< String, String >  headers,
boolean  notModified 
)
inline

Creates a new network response.

参数
statusCodethe HTTP status code
dataResponse body
headersHeaders returned with this response, or null for none
notModifiedTrue if the server returned a 304 and the data was already in cache
com.ab.network.toolbox.NetworkResponse.NetworkResponse ( byte[]  data)
inline
com.ab.network.toolbox.NetworkResponse.NetworkResponse ( byte[]  data,
Map< String, String >  headers 
)
inline

类成员变量说明

final byte [] com.ab.network.toolbox.NetworkResponse.data

Raw data from this response.

final Map<String, String> com.ab.network.toolbox.NetworkResponse.headers

Response headers.

final boolean com.ab.network.toolbox.NetworkResponse.notModified

True if the server returned a 304 (Not Modified).

final int com.ab.network.toolbox.NetworkResponse.statusCode

The HTTP status code.


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