Package net.devslash
Class HttpResponse
-
- All Implemented Interfaces:
public final class HttpResponse
-
-
Field Summary
Fields Modifier and Type Field Description private URI
uri
private final Integer
statusCode
private final Map<String, List<String>>
headers
private ByteArray
body
private final Instant
requestStartTime
private final Instant
responseStartTime
private final Duration
requestDuration
-
Method Summary
Modifier and Type Method Description final URI
getUri()
final Unit
setUri(URI uri)
final Integer
getStatusCode()
final Map<String, List<String>>
getHeaders()
final ByteArray
getBody()
final Unit
setBody(ByteArray body)
final Instant
getRequestStartTime()
final Instant
getResponseStartTime()
final Duration
getRequestDuration()
-
-
Method Detail
-
getStatusCode
final Integer getStatusCode()
-
getHeaders
final Map<String, List<String>> getHeaders()
-
getRequestStartTime
final Instant getRequestStartTime()
-
getResponseStartTime
final Instant getResponseStartTime()
-
getRequestDuration
final Duration getRequestDuration()
-
-
-
-