-
public interface HttpResponseInfoRepresents information about an HTTP response.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetUrl()Represents the URL associated with an HTTP response. abstract IntegergetStatusCode()Represents the HTTP status code associated with the response. abstract Map<String, List<String>>getHeaders()Represents the HTTP headers associated with a response. abstract StringgetContentType()Represents the MIME type of the payload associated with an HTTP response. abstract LonggetContentLength()Retrieves the content length from the response information. abstract HttpRequestInfogetRequest()Represents the HTTP request associated with the response, or null when not available. -
-
Method Detail
-
getStatusCode
abstract Integer getStatusCode()
Represents the HTTP status code associated with the response.
-
getHeaders
abstract Map<String, List<String>> getHeaders()
Represents the HTTP headers associated with a response.
-
getContentType
abstract String getContentType()
Represents the MIME type of the payload associated with an HTTP response.
-
getContentLength
@WorkerThread() abstract Long getContentLength()
Retrieves the content length from the response information.
-
getRequest
abstract HttpRequestInfo getRequest()
Represents the HTTP request associated with the response, or null when not available.
-
-
-
-