MCPcopy Create free account
hub / github.com/cuberite/cuberite / OnRequestBody

Method OnRequestBody

src/HTTPServer/HTTPServer.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41 virtual void OnRequestBody(cHTTPConnection & a_Connection, cHTTPRequest & a_Request, const char * a_Data, size_t a_Size) override
42 {
43 UNUSED(a_Connection);
44
45 cHTTPFormParser * FormParser = (cHTTPFormParser *)(a_Request.GetUserData());
46 if (FormParser != NULL)
47 {
48 FormParser->Parse(a_Data, a_Size);
49 }
50 }
51
52
53 virtual void OnRequestFinished(cHTTPConnection & a_Connection, cHTTPRequest & a_Request) override

Callers 1

RequestBodyMethod · 0.45

Calls 2

GetUserDataMethod · 0.80
ParseMethod · 0.45

Tested by

no test coverage detected