CoapRequest
class CoapRequest(val method: CoapCode, val uri: CoapUri, val options: OptionSet = OptionSet.EMPTY, payload: ByteArray = ByteArray(0), val isConfirmable: Boolean = true)(source)
A request as the client application states it: method, target URI, further options and the whole body. The client turns the URI into Uri-* options (RFC 7252 §6.4), splits a large body into Block1 transfers and assigns token and Message ID. Immutable; build one with Builder or the client's method shortcuts. Two requests are equal when method, URI, options, body (by content) and isConfirmable are, as two CoapResponses are by their parts.
Constructors
Types
Link copied to clipboard
Builds a CoapRequest.