fetch

suspend fun fetch(uri: CoapUri, payload: ByteArray = ByteArray(0), contentFormat: Int? = null, configure: CoapRequest.Builder.() -> Unit = {}): CoapResponse(source)

FETCH (RFC 8132 §2): a GET with a request body.


suspend fun fetch(uri: String, payload: ByteArray = ByteArray(0), contentFormat: Int? = null, configure: CoapRequest.Builder.() -> Unit = {}): CoapResponse(source)

FETCH to the CoAP URI uri.