Lines Matching refs:response
102 coap_pdu_t *response) { in hnd_get_resource() argument
108 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_resource()
110 coap_add_option(response, in hnd_get_resource()
117 coap_add_option(response, COAP_OPTION_ETAG, rd->etag_len, rd->etag); in hnd_get_resource()
120 coap_add_data(response, rd->data.length, rd->data.s); in hnd_get_resource()
130 coap_pdu_t *response) { in hnd_put_resource() argument
132 response->hdr->code = COAP_RESPONSE_CODE(501); in hnd_put_resource()
136 coap_pdu_t *response; in hnd_put_resource()
183 response = coap_pdu_init(type, code, request->hdr->id, size); in hnd_put_resource()
185 if (!response) { in hnd_put_resource()
191 coap_add_token(response, request->hdr->token_length, request->hdr->token); in hnd_put_resource()
193 if (coap_send(ctx, peer, response) == COAP_INVALID_TID) { in hnd_put_resource()
197 coap_delete_pdu(response); in hnd_put_resource()
208 coap_pdu_t *response) { in hnd_delete_resource() argument
220 response->hdr->code = COAP_RESPONSE_CODE(202); in hnd_delete_resource()
230 coap_pdu_t *response) { in hnd_get_rd() argument
233 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_rd()
235 coap_add_option(response, in hnd_get_rd()
241 coap_add_option(response, in hnd_get_rd()
394 coap_pdu_t *response) { in hnd_post_rd() argument
406 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_post_rd()
520 response->hdr->code = COAP_RESPONSE_CODE(201); in hnd_post_rd()
530 coap_add_option(response, in hnd_post_rd()