PreviewClientImpl

http client implement for preview only

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

fixed buffers

Link copied to clipboard
class URL(url: String)

parse url string

Functions

Link copied to clipboard
open suspend override fun close()

close connection

Link copied to clipboard
open suspend override fun hasNextPart(): Boolean

check continue to next part or not

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

retrieve next part

Link copied to clipboard
open suspend override fun request(endpoint: String, method: String, path: String, body: String, contentType: String): PreviewClient

request method with contentType of body to endpoint

Link copied to clipboard
suspend fun response(): Pair<ByteArray, Int>?

got all response with content-length (not used)