CoapRequest.fromParsed constructor
CoapRequest.fromParsed(
- Uri uri,
- RequestMethod method, {
- required CoapMessageType type,
- required int id,
- required Uint8Buffer token,
- required List<
Option< options,Object?> > - required Uint8Buffer? payload,
- required bool hasUnknownCriticalOption,
- required bool hasFormatError,
Implementation
CoapRequest.fromParsed(
this.uri,
this.method, {
required final CoapMessageType type,
required final int id,
required final Uint8Buffer token,
required final List<Option<Object?>> options,
required final Uint8Buffer? payload,
required final bool hasUnknownCriticalOption,
required final bool hasFormatError,
}) : super.fromParsed(
method.coapCode,
type,
id: id,
token: token,
options: options,
hasUnknownCriticalOption: hasUnknownCriticalOption,
hasFormatError: hasFormatError,
payload: payload,
);