RequestBodyHandler

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

Functions

Link copied to clipboard
abstract fun supports(map: ReadableMap): Boolean
Returns if the handler should be used for a JS body payload.
Link copied to clipboard
abstract fun toRequestBody(map: ReadableMap, contentType: String): RequestBody
Returns the RequestBody for the JS body payload.