Network Request
constructor(method: NetworkRequest.Method, url: String, headers: Map<String, String> = emptyMap(), body: ByteArray? = null)
constructor(url: String, headers: Map<String, String> = emptyMap(), method: NetworkRequest.Method = GET, bodyBase64: String? = null)
Parameters
url
The URL to make the request to
headers
The headers to be sent with the request
method
The HTTP method to use for the request, defaults to Method.GET
body Base64
The body of the request encoded in Base64, can be null