Merge pull request #99 from Trilliant/feature/fixHandlersForNewVerbs

resource.h: increase method_handler structure to hold new methods (FETCH, PATCH, IPATCH)
This commit is contained in:
obgm authored and GitHub committed 2017-07-10 17:25:07 +02:00
commit 96e536006f
1 file changed
+4 -3
+4 -3
View File
@@ -79,12 +79,13 @@ typedef struct coap_resource_t {
unsigned int cacheable:1; /**< can be cached */
/**
* Used to store handlers for the four coap methods @c GET, @c POST, @c PUT,
* and @c DELETE. coap_dispatch() will pass incoming requests to the handler
* Used to store handlers for the seven coap methods @c GET, @c POST, @c PUT,
* @c DELETE, @c FETCH, @c PATCH and @c IPATCH.
* coap_dispatch() will pass incoming requests to the handler
* that corresponds to its request method or generate a 4.05 response if no
* handler is available.
*/
coap_method_handler_t handler[4];
coap_method_handler_t handler[7];
coap_key_t key; /**< the actual key bytes for this resource */