public static class HttpConnection.Response extends Object implements Connection.Response
| 限定符和类型 | 方法和说明 |
|---|---|
String |
body()
Get the body of the response as a plain string.
|
byte[] |
bodyAsBytes()
Get the body of the response as an array of bytes.
|
String |
charset()
Get the character set name of the response.
|
String |
contentType()
Get the response content type (e.g.
|
int |
statusCode()
Get the status code of the response.
|
String |
statusMessage()
Get the status message of the response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcookie, cookie, cookies, hasCookie, hasHeader, header, header, headers, method, method, removeCookie, removeHeader, url, urlpublic int statusCode()
Connection.ResponsestatusCode 在接口中 Connection.Responsepublic String statusMessage()
Connection.ResponsestatusMessage 在接口中 Connection.Responsepublic String charset()
Connection.Responsecharset 在接口中 Connection.Responsepublic String contentType()
Connection.ResponsecontentType 在接口中 Connection.Responsepublic String body()
Connection.Responsebody 在接口中 Connection.Responsepublic byte[] bodyAsBytes()
Connection.ResponsebodyAsBytes 在接口中 Connection.ResponseCopyright © 2021. All rights reserved.