CoapRequest.post constructor
CoapRequest.post(
- Uri uri, {
- bool confirmable = true,
- Iterable<
int> ? payload, - CoapMediaType? contentFormat,
- CoapMediaType? accept,
Construct a POST request.
Implementation
factory CoapRequest.post(
final Uri uri, {
final bool confirmable = true,
final Iterable<int>? payload,
final CoapMediaType? contentFormat,
final CoapMediaType? accept,
}) =>
CoapRequest(
uri,
RequestMethod.post,
confirmable: confirmable,
payload: payload,
contentFormat: contentFormat,
accept: accept,
);