MCPcopy Create free account
hub / github.com/3rdparty/libprocess / on_headers_complete

Method on_headers_complete

src/decoder.hpp:420–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 }
419
420 static int on_headers_complete(http_parser* p)
421 {
422 ResponseDecoder* decoder = (ResponseDecoder*) p->data;
423
424 CHECK_NOTNULL(decoder->response);
425
426 // Add final header.
427 decoder->response->headers[decoder->field] = decoder->value;
428 decoder->field.clear();
429 decoder->value.clear();
430
431 return http_parsing::SUCCESS;
432 }
433
434 static int on_body(http_parser* p, const char* data, size_t length)
435 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected