Response struct final
#include <coap/coap.hpp>
Endpoint response data returned by callback.
Public functions
- auto append_payload(const std::span<const uint8_t> bytes) -> bool
- auto append_payload_byte(const uint8_t byte) -> bool
- auto clear_payload() -> bool
- void set_buffer(const std::span<uint8_t> buffer)
- auto set_payload(const std::span<const uint8_t> bytes) -> bool
- auto writable_payload_buffer() const -> std::span<uint8_t>
Public variables
- uint8_t code
- uint16_t content_format
- bool has_content_format
- std::span<const uint8_t> payload