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

Method on_body

src/decoder.hpp:434–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 }
433
434 static int on_body(http_parser* p, const char* data, size_t length)
435 {
436 ResponseDecoder* decoder = (ResponseDecoder*) p->data;
437 CHECK_NOTNULL(decoder->response);
438 decoder->response->body.append(data, length);
439 return http_parsing::SUCCESS;
440 }
441
442 static int on_message_complete(http_parser* p)
443 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected