public interface HttpClientResponse extends Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close response InputStream.
|
InputStream |
getBody()
Return the body of the message as an input stream.
|
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() throws IOException
IOException - IOExceptionint getStatusCode()
throws IOException
IOException - IOExceptionString getStatusText() throws IOException
IOException - IOExceptionvoid close()
close 在接口中 AutoCloseableclose 在接口中 CloseableCopyright © 2018–2024 Alibaba Group. All rights reserved.