31#ifndef _COAP_SERVER_REQUEST_H
32#define _COAP_SERVER_REQUEST_H
44error_t coapServerGetMethodCode(CoapServerContext *context,
CoapCode *code);
46error_t coapServerGetUriPath(CoapServerContext *context, char_t *path,
49error_t coapServerGetUriQuery(CoapServerContext *context, char_t *queryString,
52error_t coapServerGetOpaqueOption(CoapServerContext *context, uint16_t optionNum,
53 uint_t optionIndex,
const uint8_t **optionValue,
size_t *optionLen);
55error_t coapServerGetStringOption(CoapServerContext *context, uint16_t optionNum,
56 uint_t optionIndex,
const char_t **optionValue,
size_t *optionLen);
58error_t coapServerGetUintOption(CoapServerContext *context, uint16_t optionNum,
59 uint_t optionIndex, uint32_t *optionValue);
61error_t coapServerGetPayload(CoapServerContext *context,
const uint8_t **payload,
64error_t coapServerReadPayload(CoapServerContext *context,
void *data,
size_t size,
67error_t coapServerSetResponseCode(CoapServerContext *context,
CoapCode code);
69error_t coapServerSetLocationPath(CoapServerContext *context,
72error_t coapServerSetLocationQuery(CoapServerContext *context,
73 const char_t *queryString);
75error_t coapServerSetOpaqueOption(CoapServerContext *context, uint16_t optionNum,
76 uint_t optionIndex,
const uint8_t *optionValue,
size_t optionLen);
78error_t coapServerSetStringOption(CoapServerContext *context, uint16_t optionNum,
79 uint_t optionIndex,
const char_t *optionValue);
81error_t coapServerSetUintOption(CoapServerContext *context, uint16_t optionNum,
82 uint_t optionIndex, uint32_t optionValue);
84error_t coapServerDeleteOption(CoapServerContext *context, uint16_t optionNum,
87error_t coapServerSetPayload(CoapServerContext *context,
const void *payload,
90error_t coapServerWritePayload(CoapServerContext *context,
const void *data,
CoapCode
CoAP method and response codes.
Definition coap_common.h:113
CoAP option formatting and parsing.
error_t
Error codes.
Definition error.h:43