Lines Matching refs:response

225  * being read by a blocked response to GET.
268 coap_pdu_t *response) {
270 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
271 coap_add_data_large_response(resource, session, request, response,
282 coap_pdu_t *response) {
315 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND);
321 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
322 coap_add_data_large_response(resource, session, request, response,
328 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND);
337 coap_pdu_t *response) {
348 coap_pdu_set_code(response, my_clock_base ? COAP_RESPONSE_CODE_CHANGED :
368 coap_pdu_set_code(response, COAP_RESPONSE_CODE_BAD_REQUEST);
369 coap_add_option(response,
373 coap_add_data(response, 22, (const uint8_t *)"Invalid set time value");
385 coap_pdu_t *response COAP_UNUSED) {
394 * "separate" response (empty ACK followed by data response at a later stage).
401 coap_pdu_t *response) {
430 coap_pdu_set_code(response, COAP_RESPONSE_CODE_BAD_REQUEST);
438 coap_pdu_set_code(response, COAP_RESPONSE_CODE_SERVICE_UNAVAILABLE);
442 * Not setting response code will cause empty ACK to be sent
450 coap_add_data_large_response(resource, session, request, response,
453 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
470 coap_pdu_t *response) {
487 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
489 coap_add_data_large_response(resource, session, request, response,
511 coap_pdu_t *response) {
563 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
580 /* Give us the next block response */
581 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTINUE);
593 /* pre-existed response */
594 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CHANGED);
598 /* just generated response */
599 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CREATED);
603 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
620 coap_add_data_large_response(resource, session, request, response,
776 get_proxy_session(coap_session_t *session, coap_pdu_t *response,
794 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
802 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
812 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
837 coap_pdu_t *response;
842 response = coap_pdu_init(proxy_list[i].req_type,
846 if (!response) {
852 !coap_add_token(response, proxy_list[i].token->length,
854 coap_log_debug("Cannot add token to incoming proxy response PDU\n");
857 if (coap_send(proxy_list[i].incoming, response) ==
879 coap_pdu_t *response, const coap_bin_const_t *token,
893 new_proxy_list = get_proxy_session(session, response, token, query, req_code,
918 coap_pdu_set_code(response, COAP_RESPONSE_CODE_BAD_GATEWAY);
965 coap_pdu_set_code(response, COAP_RESPONSE_CODE_PROXYING_NOT_SUPPORTED);
983 coap_pdu_t *response) {
1012 coap_pdu_set_code(response,
1031 coap_pdu_set_code(response,
1038 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND);
1044 coap_pdu_set_code(response, COAP_RESPONSE_CODE_PROXYING_NOT_SUPPORTED);
1049 coap_pdu_set_code(response, COAP_RESPONSE_CODE_PROXYING_NOT_SUPPORTED);
1061 if (!get_proxy_session(session, response, &token, query, req_code, req_type))
1078 ongoing = get_ongoing_proxy_session(session, response, &token,
1089 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
1095 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
1166 * Do not update with response code (hence empty ACK) as will be sending
1167 * separate response when response comes back from upstream server
1203 coap_pdu_t *response) {
1210 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND);
1232 coap_pdu_set_code(response, COAP_RESPONSE_CODE_DELETED);
1245 coap_pdu_t *response) {
1258 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND);
1268 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND);
1274 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
1276 coap_add_data_large_response(resource, session, request, response,
1293 coap_pdu_t *response) {
1310 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND);
1325 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_ACCEPTABLE);
1358 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
1407 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
1439 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTINUE);
1454 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
1463 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CREATED);
1470 if (!coap_add_option(response, COAP_OPTION_LOCATION_PATH,
1476 if (!coap_add_option(response, COAP_OPTION_LOCATION_QUERY,
1487 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CHANGED);
1495 coap_add_data_large_response(resource, session, request, response,
1504 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
1517 coap_pdu_t *response) {
1523 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_ACCEPTABLE);
1530 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND);
1551 hnd_put_post(r, session, request, query, response);
1627 coap_log_debug("Unknown proxy ongoing session response received\n");
1631 coap_log_debug("** process upstream incoming %d.%02d response:\n",
1650 * as separate response
1656 coap_log_debug("Failed to create ongoing proxy response PDU\n");
1661 coap_log_debug("cannot add token to ongoing proxy response PDU\n");
2186 "\t \t\tevery fifth response will still be sent as a confirmable\n"