PreviewClient

interface PreviewClient

http client interface for preview only

Inheritors

Functions

Link copied to clipboard
abstract suspend fun close()

close connection

Link copied to clipboard
abstract suspend fun hasNextPart(): Boolean

check continue to next part or not

Link copied to clipboard
abstract suspend fun nextPart(): Pair<ByteArray, Int>

retrieve next part

Link copied to clipboard
abstract suspend fun request(endpoint: String, method: String = "POST", path: String = "/osc/commands/execute", body: String = "{", contentType: String = "application/json"): PreviewClient

request method with contentType of body to endpoint