aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/upstream/upstreamservice.h
blob: f1da03c8c79034dff7d2dfd01dc1416dd7352362 (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>

namespace zen {

class AuthMgr;
class UpstreamCache;

class HttpUpstreamService final : public zen::HttpService
{
public:
	HttpUpstreamService(UpstreamCache& Upstream, AuthMgr& Mgr);
	virtual ~HttpUpstreamService();

	virtual const char* BaseUri() const override;
	virtual void		HandleRequest(zen::HttpServerRequest& Request) override;

private:
	UpstreamCache&	  m_Upstream;
	AuthMgr&		  m_AuthMgr;
	HttpRequestRouter m_Router;
};

}  // namespace zen