public class HttpResponse extends Object
Modifier and Type | Method and Description |
---|---|
byte[] |
body() |
<T> T |
body(Class<T> resultClass) |
int |
code() |
boolean |
equals(Object obj) |
int |
hashCode() |
Map<String,List<String>> |
headers() |
boolean |
isSuccessful()
Returns true if the code is in [200..300), which means the request was successfully received,
understood, and accepted.
|
String |
message() |
long |
receivedResponseAtMillis()
Received response at millis.
|
long |
sentRequestAtMillis()
Sent request at millis.
|
String |
toString() |
public boolean isSuccessful()
public long sentRequestAtMillis()
public long receivedResponseAtMillis()
public int code()
public String message()
public byte[] body()
public <T> T body(Class<T> resultClass)
T
- resultClass
- public boolean equals(Object obj)
Copyright © 2021. All rights reserved.