Skip to content

Commit

Permalink
feat: add missing method codes
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jul 16, 2022
1 parent baa2ea5 commit 99f2618
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/src/coap_code.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ enum CoapCode {
/// Defined in [RFC 7252](https://datatracker.ietf.org/doc/html/rfc7252).
delete(0, 04, 'DELETE'),

/// The FETCH method
///
/// Defined in [RFC 8132](https://datatracker.ietf.org/doc/html/rfc8132).
fetch(0, 05, 'FETCH'),

/// The PATCH method
///
/// Defined in [RFC 8132](https://datatracker.ietf.org/doc/html/rfc8132).
patch(0, 06, 'PATCH'),

/// The iPATCH method
///
/// Defined in [RFC 8132](https://datatracker.ietf.org/doc/html/rfc8132).
ipatch(0, 07, 'iPATCH'),

/// 2.01 Created
///
/// Defined in [RFC 7252](https://datatracker.ietf.org/doc/html/rfc7252).
Expand Down

0 comments on commit 99f2618

Please sign in to comment.