ResponseHandler

interface ResponseHandler

Allows adding custom handling to build the JS body payload from the ResponseBody.

Functions

Link copied to clipboard
abstract fun supports(responseType: String): Boolean
Returns if the handler should be used for a response type.
Link copied to clipboard
abstract fun toResponseData(body: ResponseBody): WritableMap
Returns the JS body payload for the ResponseBody.