IHttpResponse Interface
public interface IHttpResponse
Represents an HTTP response returned after executing a HttpRequest through an IHttpClient implementation. This interface encapsulates all the data returned by the authentication service or other HTTP endpoints contacted during the authentication flows.
Custom implementations of IHttpClient must convert their native HTTP response objects to this interface.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract java.lang.String |
body()
Gets the HTTP response body. |
| abstract java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
headers()
Gets the HTTP response headers. |
| abstract int |
statusCode()
Gets the HTTP response status code. |
Method Details
body
public abstract String body()
Gets the HTTP response body.
Returns:
headers
public abstract Map<String,List<String>> headers()
Gets the HTTP response headers.
Returns:
statusCode
public abstract int statusCode()
Gets the HTTP response status code.
Returns: