| 170 | } |
| 171 | |
| 172 | static int on_header_value(http_parser* p, const char* data, size_t length) |
| 173 | { |
| 174 | DataDecoder* decoder = (DataDecoder*) p->data; |
| 175 | CHECK_NOTNULL(decoder->request); |
| 176 | decoder->value.append(data, length); |
| 177 | decoder->header = HEADER_VALUE; |
| 178 | return http_parsing::SUCCESS; |
| 179 | } |
| 180 | |
| 181 | static int on_headers_complete(http_parser* p) |
| 182 | { |