Provides a context for generating the response to a StatusDataset request.
StatusDatasetContext & setPrefix(const Name &prefix)
Changes the prefix of the response Data packets.
const Name & getPrefix() const
Returns the prefix of Data packets, with version component but without segment component.
void end()
Finalizes the response successfully after appending zero or more blocks.
void append(span< const uint8_t > bytes)
Appends a sequence of bytes to the response.
void reject(const ControlResponse &resp=ControlResponse().setCode(400))
Rejects the request.