Interface Response
-
- All Implemented Interfaces:
public interface Response
-
-
Method Summary
Modifier and Type Method Description abstract Request
getRequest()
The request for which the response is being returned. abstract String
getUrl()
The URL from which the response was returned. abstract int
getStatus()
The status code as returned in the HTTP response. abstract String
getStatusText()
The status text as returned in the HTTP response. abstract Map<String, String>
getHeaders()
The HTTP headers as returned by the server. abstract Array<byte>
getBody()
The body of the response. -
-
Method Detail
-
getRequest
@NonNull() abstract Request getRequest()
The request for which the response is being returned.
-
getUrl
@NonNull() abstract String getUrl()
The URL from which the response was returned. This might have been redirected transparently.
-
getStatus
abstract int getStatus()
The status code as returned in the HTTP response.
-
getStatusText
@NonNull() abstract String getStatusText()
The status text as returned in the HTTP response.
-
getHeaders
@NonNull() abstract Map<String, String> getHeaders()
The HTTP headers as returned by the server.
-
-
-
-