getRequestText

open fun getRequestText(): String?

Return (nullable) HTTP request body (as text string) if available, otherwise null. If non-null, the returned value will typically be a JSON text string. Note: If {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#method PendingRequest.method} is createMedia, uploadMedia or uploadStream, then null will be returned even if the stream's media type indicates text.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#getRequestData() PendingRequest.getRequestData}.

Return

(nullable) HTTP request body (as text string) if available, otherwise null.