java.io.Closeable
java.lang.AutoCloseable
public final class Response implements Closeable
private final Request
request
private final Integer
code
private final Map<String, List<String>>
headers
Response(Request request, Integer code, Map<String, List<String>> headers, InputStream bodyStream, Function0<Unit> closeDelegate)
final Request
getRequest()
final Integer
getCode()
final Map<String, List<String>>
getHeaders()
final Boolean
isSuccess()
final String
getHeaderValue(String header)
readBody()
Unit
close()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
final Request getRequest()
final Integer getCode()
final Map<String, List<String>> getHeaders()
final Boolean isSuccess()
final String getHeaderValue(String header)
final String readBody()
Unit close()