Interface Response
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
JDKHttpResponseWrapper
,MutableResponse
,OkHttpResponseWrapper
-
Method Summary
-
Method Details
-
getBody
- Throws:
IOException
-
getBodyAsStream
- Returns:
- A
ByteArrayInputStream
around the return value ofgetBody()
. Implementations should override if they can be more efficient. - Throws:
IOException
-
getBodyAsString
- Returns:
- New UTF-8 string based on the return value of
getBody()
. - Throws:
IOException
-
getHeaders
Headers getHeaders() -
getStatus
Status getStatus() -
getTransport
Transport getTransport()
-