Response

interface Response<T>(source)

External-facing interface for all http queries. Each instance of this interface is the observer for the result of a single query.

Functions

Link copied to clipboard
abstract fun error(exception: Throwable?)

This method is called when the http query has yielded a failure response (Non-200 HTTP Response Code)

Link copied to clipboard
abstract fun success(response: T)

This method is called when the http query has yielded a successful response (HTTP Response Code 200-299)