| 1823 | } |
| 1824 | |
| 1825 | int |
| 1826 | body_cb (http_parser *p, const char *buf, size_t len) |
| 1827 | { |
| 1828 | assert(p == parser); |
| 1829 | strlncat(messages[num_messages].body, |
| 1830 | sizeof(messages[num_messages].body), |
| 1831 | buf, |
| 1832 | len); |
| 1833 | messages[num_messages].body_size += len; |
| 1834 | check_body_is_final(p); |
| 1835 | // printf("body_cb: '%s'\n", requests[num_messages].body); |
| 1836 | return 0; |
| 1837 | } |
| 1838 | |
| 1839 | int |
| 1840 | count_body_cb (http_parser *p, const char *buf, size_t len) |
no test coverage detected