This PR refactors the CoapCode and CoapMessageType classes as enhanced enums (also see #80), making the code more concise and readable. The changes also make it easier to add more CoapCodes in the future. The PR itself adds a few missing CoapCodes from the IANA registry, including the new method codes FETCH, PATCH, and iPATCH.
This PR refactors the
CoapCode
andCoapMessageType
classes as enhanced enums (also see #80), making the code more concise and readable. The changes also make it easier to add moreCoapCode
s in the future. The PR itself adds a few missingCoapCode
s from the IANA registry, including the new method codesFETCH
,PATCH
, andiPATCH
.CC @JosefWN