Lines Matching refs:response
99 coap_pdu_t *response) {
102 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
104 coap_add_option(response, COAP_OPTION_CONTENT_TYPE,
109 coap_add_option(response, COAP_OPTION_MAXAGE,
112 coap_add_data(response, strlen(INDEX), (const uint8_t *)INDEX);
121 coap_pdu_t *response) {
126 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
131 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
133 coap_add_data_blocked_response(request, response,
146 coap_pdu_t *response) {
156 coap_pdu_set_code(response, COAP_RESPONSE_CODE_DELETED);
164 coap_pdu_t *response) {
186 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
214 coap_add_option(response, COAP_OPTION_LOCATION_PATH,
220 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CREATED);
230 coap_pdu_t *response) {
237 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CHANGED);
275 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
283 coap_pdu_t *response) {
293 coap_pdu_set_code(response, COAP_RESPONSE_CODE_DELETED);
301 coap_pdu_t *response) {
308 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
310 coap_add_option(response, COAP_OPTION_CONTENT_TYPE,
334 coap_add_data(response, len, buf);
343 coap_pdu_t *response) {
384 coap_pdu_set_code(response, COAP_RESPONSE_CODE_SERVICE_UNAVAILABLE);
387 /* Not setting response code will cause empty ACK to be sent
394 coap_add_data(response, 4, (const uint8_t *)"done");
395 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);