class

CoAP::Header

Inherits BinData < Reference < Object

Constants

ENDIAN = ["big"]
KLASS_NAME = [CoAP::Header]
PARTS = [{type: "bitfield", name: 1, cls: CoAP::Header, onlyif: nil, verify: nil}] of Nil
REMAINING = [] of Nil

Class methods

bit_fields
Source

Instance methods

__format__
Source
token_length
token_length=(token_length : UInt8)
type

https://tools.ietf.org/html/rfc7252#section-4.3

Source
type=(type : UInt8)

https://tools.ietf.org/html/rfc7252#section-4.3

type=(value : Type)

https://tools.ietf.org/html/rfc7252#section-4.3

Source
version

Should always be 1

version=(version : UInt8)

Should always be 1

Macros

co_ap_header(name, onlyif = nil, verify = nil, value = nil)
Source
co_ap_option(name, onlyif = nil, verify = nil, value = nil)
Source

Nested types