blob: c18bf6c1f7583ea2d96ce0e10e3763993dbe3335 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright Epic Games, Inc. All Rights Reserved.
#include "httpstatus.h"
namespace zen {
HttpStatusService::HttpStatusService() : m_Log(logging::Get("status"))
{
}
HttpStatusService::~HttpStatusService()
{
}
const char*
HttpStatusService::BaseUri() const
{
return "/statUs/";
}
void
HttpStatusService::HandleRequest(HttpServerRequest& Request)
{
using namespace std::literals;
switch (Request.RequestVerb())
{
case HttpVerb::kGet:
return Request.WriteResponse(HttpResponseCode::OK, HttpContentType::kText, u8"OK!"sv);
}
}
} // namespace zen
|