CoapRequestBuilder

This allows one to build up a new CoAP request of some form in a method-call-by-method-call manner.

In order to instantiate one of these please do so via the CoapClient.

Constructors

this
this(CoapClient client)

Constructs a new builder

Members

Functions

con
CoapRequestBuilder con()

Sets this message as confirmable

get
CoapRequestFuture get()

Build the request, set it in flight and return the future handle to it.

non
CoapRequestBuilder non()

Sets this message as non-confirmable

payload
CoapRequestBuilder payload(ubyte[] payload)

Set the payload for this request

post
CoapRequestFuture post()

Build the request, set it in flight and return the future handle to it.

token
CoapRequestBuilder token(ubyte[] tkn)

Set the token to use for this request

Variables

pyld
ubyte[] pyld;

The payload

requestCode
Code requestCode;

The request code

tkn
ubyte[] tkn;

The token

type
MessageType type;

The message type

Meta