class CoAP::Header

Direct Known Subclasses

Defined in:

coap/message.cr

Constant Summary

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

Class Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.bit_fields #

[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def token_length : UInt8 #

def token_length=(token_length : UInt8) #

def type : Type #

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


[View source]
def type=(type : UInt8) #

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


def type=(value : Type) #

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


[View source]
def version : UInt8 #

Should always be 1


def version=(version : UInt8) #

Should always be 1


Macro Detail

macro co_ap_header(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro co_ap_option(name, onlyif = nil, verify = nil, value = nil) #

[View source]