HttpResponse 类

定义

An HTTPS response. Contains the status code, body, header fields, and error reason (if any).

public class HttpResponse
继承
java.lang.Object
HttpResponse

构造函数

HttpResponse()
HttpResponse(int status, byte[] body, Map<String, List<String>> headerFields, byte[] errorReason)

Constructor.

字段

body
errorReason
headerFields
status

方法

canonicalizeFieldName(String field)
flattenValuesList(List<String> values)
getBody()

Getter for the response body.

getErrorReason()

Getter for the error reason.

getHeaderField(String field)

Getter for a header field.

getHeaderFields()

Getter for the header fields.

getStatus()

Getter for the HTTPS status code.

适用于