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

Method SendStatusAndReason

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

Source from the content-addressed store, hash-verified

34
35
36void cHTTPConnection::SendStatusAndReason(int a_StatusCode, const AString & a_Response)
37{
38 AppendPrintf(m_OutgoingData, "%d %s\r\nContent-Length: 0\r\n\r\n", a_StatusCode, a_Response.c_str());
39 m_HTTPServer.NotifyConnectionWrite(*this);
40 m_State = wcsRecvHeaders;
41}
42
43
44

Callers 1

HandleWebadminRequestMethod · 0.80

Calls 2

c_strMethod · 0.80
NotifyConnectionWriteMethod · 0.80

Tested by

no test coverage detected