CoapRequest constructor
CoapRequest(
- Uri uri,
- RequestMethod method, {
- bool confirmable = true,
- Iterable<
int> ? payload, - CoapMediaType? accept,
- CoapMediaType? contentFormat,
Initializes a request message. Defaults to confirmable
Implementation
CoapRequest(
this.uri,
this.method, {
final bool confirmable = true,
super.payload,
final CoapMediaType? accept,
super.contentFormat,
}) : super(
method.coapCode,
confirmable ? CoapMessageType.con : CoapMessageType.non,
) {
super.accept = accept;
}