aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/httpnull.h
blob: 965e729f7969552b35533a48631b9699f411f915 (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
// Copyright Epic Games, Inc. All Rights Reserved.

#pragma once

#include <zencore/thread.h>
#include <zenhttp/httpserver.h>

namespace zen {

/**
 * @brief Null implementation of "http" server. Does nothing
 */

class HttpNullServer : public HttpServer
{
public:
	HttpNullServer();
	~HttpNullServer();

	virtual void RegisterService(HttpService& Service) override;
	virtual int	 Initialize(int BasePort) override;
	virtual void Run(bool IsInteractiveSession) override;
	virtual void RequestExit() override;
	virtual void Close() override;

private:
	Event m_ShutdownEvent;
};

}  // namespace zen