aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpnull.h
blob: 74f021f6b8c99d6a60529bd9425415e6ef1639c7 (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
// 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;

private:
	Event m_ShutdownEvent;
};

}  // namespace zen