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

Method HandleRootRequest

src/WebAdmin.cpp:323–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321
322
323void cWebAdmin::HandleRootRequest(cHTTPConnection & a_Connection, cHTTPRequest & a_Request)
324{
325 UNUSED(a_Request);
326 static const char LoginForm[] = \
327 "<h1>MCServer WebAdmin</h1>" \
328 "<center>" \
329 "<form method='get' action='webadmin/'>" \
330 "<input type='submit' value='Log in'>" \
331 "</form>" \
332 "</center>";
333 cHTTPResponse Resp;
334 Resp.SetContentType("text/html");
335 a_Connection.Send(Resp);
336 a_Connection.Send(LoginForm, sizeof(LoginForm) - 1);
337 a_Connection.FinishResponse();
338}
339
340
341

Callers

nothing calls this directly

Calls 3

SetContentTypeMethod · 0.80
FinishResponseMethod · 0.80
SendMethod · 0.45

Tested by

no test coverage detected