aboutsummaryrefslogtreecommitdiff
path: root/zenserver/upstream/upstreamservice.h
blob: 0a42198c240eb260453804f4879b87592246efad (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
// Copyright Epic Games, Inc. All Rights Reserved.

#pragma once

#include <zenhttp/httpserver.h>

namespace zen {

class UpstreamCache;

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

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

private:
	HttpRequestRouter m_Router;
	UpstreamCache&	  m_Upstream;
};

}  // namespace zen