submit

fun submit(path: String, method: HTTPMethod = HTTPMethod.POST, fieldsStates: List<BaseFieldState>? = null): VGSResponse

This function executes and send data on VGS Server. It could be useful if you want to handle multithreading by yourself. Do not use this method on the UI thread as this may crash.

Parameters

path

path for a request

method

HTTP method

fieldsStates

Optional list of Compose field states to tokenize.


fun submit(request: VGSRequest, fieldsStates: List<BaseFieldState>? = null): VGSResponse

This function executes and send data on VGS Server. It could be useful if you want to handle multithreading by yourself. Do not use this method on the UI thread as this may crash.

Parameters

request

data class with attributes for submit.

fieldsStates

Optional list of Compose field states to tokenize.