Builder

class Builder(val method: CoapCode, val uri: CoapUri)(source)

Builds a CoapRequest.

Constructors

Link copied to clipboard
constructor(method: CoapCode, uri: CoapUri)

Properties

Link copied to clipboard

Confirmable (RFC 7252 §4.2) unless set to false.

Link copied to clipboard
Link copied to clipboard

The body; Block1 splits it when it does not fit one message.

Link copied to clipboard

Functions

Link copied to clipboard

Sets Accept (RFC 7252 §5.10.4); the server answers 4.06 if it cannot comply.

Link copied to clipboard

The request.

Link copied to clipboard

Sets Content-Format (RFC 7252 §5.10.3).

Link copied to clipboard

Sends the request Non-confirmable (RFC 7252 §4.3).

Link copied to clipboard

Adds or changes options in block.

Link copied to clipboard

Sets a UTF-8 text body.