blob: 69654361648c18534e05008c28a5b6bf90b34e90 (
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
34
|
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include <zenhttp/httpserver.h>
#include <spdlog/spdlog.h>
namespace zen {
/**
* Test service to facilitate testing the HTTP framework and client interactions
*/
class HttpTestingService : public HttpService
{
public:
HttpTestingService();
~HttpTestingService();
virtual const char* BaseUri() const override;
virtual void HandleRequest(HttpServerRequest& Request) override;
private:
HttpRequestRouter m_Router;
struct PackageHandler : public PackageEndpointHandler
{
virtual void HandleRequest(HttpRouterRequest& Request) override;
};
PackageHandler m_PackageHandler;
};
} // namespace zen
|