public interface HttpClientResponse extends Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close response InputStream.
|
InputStream |
getBody()
Return the body of the message as an input stream.
|
String |
getBodyString()
Return the body As string.
|
Header |
getHeaders()
Return the headers of this message.
|
int |
getStatusCode()
Return the HTTP status code.
|
String |
getStatusText()
Return the HTTP status text of the response.
|
Header getHeaders()
null)InputStream getBody()
int getStatusCode()
String getStatusText()
String getBodyString()
void close()
close 在接口中 AutoCloseableclose 在接口中 CloseableCopyright © 2022. All rights reserved.