| 8683 | * of a "completed" wrapper marked failed in a sub-field. */ |
| 8684 | const char *event_type = "response.completed"; |
| 8685 | if (finish && !strcmp(finish, "error")) event_type = "response.failed"; |
| 8686 | else if (finish && !strcmp(finish, "length")) event_type = "response.incomplete"; |
| 8687 | const char *status = responses_status_for_finish(finish); |
| 8688 | |
| 8689 | buf b = {0}; |
| 8690 | buf_printf(&b, |
| 8691 | "{\"type\":\"%s\",\"response\":{\"id\":\"%s\"," |
nothing calls this directly
no test coverage detected