public abstract class CacheResponse extends Object
Constructor and Description |
---|
CacheResponse() |
Modifier and Type | Method and Description |
---|---|
abstract InputStream |
getBody()
将响应体作为InputStream返回。
|
abstract Map<String,List<String>> |
getHeaders()
将响应标头作为Map返回。
|
public abstract Map<String,List<String>> getHeaders() throws IOException
IOException
- 如果在获取响应标头时发生I / O错误
public abstract InputStream getBody() throws IOException
IOException
- 如果在获取响应正文时发生I / O错误