public class DefaultHttpResponse extends Object implements HttpResponse
| 构造器和说明 |
|---|
DefaultHttpResponse(HttpURLConnection httpURLConnection) |
public DefaultHttpResponse(HttpURLConnection httpURLConnection)
public int getStatusCode()
throws IOException
getStatusCode 在接口中 HttpResponseIOExceptionpublic String getStatusMessage() throws IOException
getStatusMessage 在接口中 HttpResponseIOExceptionpublic String getHeader(String header) throws IOException
getHeader 在接口中 HttpResponseIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream 在接口中 HttpResponseIOExceptionCopyright © 2019. All rights reserved.