public static interface NetworkingModule.RequestBodyHandler
RequestBody
from the JS body payload.Modifier and Type | Method and Description |
---|---|
boolean |
supports(ReadableMap map)
Returns if the handler should be used for a JS body payload.
|
okhttp3.RequestBody |
toRequestBody(ReadableMap map,
java.lang.String contentType)
Returns the
RequestBody for the JS body payload. |
boolean supports(ReadableMap map)
okhttp3.RequestBody toRequestBody(ReadableMap map, java.lang.String contentType)
RequestBody
for the JS body payload.