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

Method on_body

src/decoder.hpp:200–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 }
199
200 static int on_body(http_parser* p, const char* data, size_t length)
201 {
202 DataDecoder* decoder = (DataDecoder*) p->data;
203 CHECK_NOTNULL(decoder->request);
204 decoder->request->body.append(data, length);
205 return http_parsing::SUCCESS;
206 }
207
208 static int on_message_complete(http_parser* p)
209 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected