aboutsummaryrefslogtreecommitdiff
path: root/zenserver/testing/httptest.h
blob: 18652db7185a26d410de008e0896e693f7899e09 (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
// 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;
};

}  // namespace zen