CoapResponse constructor
CoapResponse(
- ResponseCode responseCode,
- CoapMessageType type, {
- Uri? location,
- Iterable<
int> ? payload,
Initializes a response message.
Implementation
CoapResponse(
this.responseCode,
final CoapMessageType type, {
final Uri? location,
super.payload,
}) : location = location ?? Uri(path: '/'),
super(responseCode.coapCode, type);