You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #jira none #ROBOMERGE-OWNER: ryan.durand #ROBOMERGE-AUTHOR: ryan.durand #ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536 #ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866) [CL 10870955 by Ryan Durand in Main branch]
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "SessionMonitorCommon.h"
|
|
|
|
// Forward declarations
|
|
class FMonitor;
|
|
|
|
class FMonitorController
|
|
{
|
|
public:
|
|
FMonitorController(FMonitor& Monitor);
|
|
virtual ~FMonitorController();
|
|
|
|
protected:
|
|
FMonitor& Monitor;
|
|
};
|
|
|
|
/**
|
|
* Rest API implementation
|
|
*/
|
|
class FRestAPIMonitorController : public FMonitorController
|
|
{
|
|
public:
|
|
FRestAPIMonitorController(FMonitor& Monitor, const std::string& ListenAddress, bool bServeEvents);
|
|
~FRestAPIMonitorController();
|
|
|
|
private:
|
|
|
|
struct FEvent
|
|
{
|
|
std::string Name;
|
|
std::string Data;
|
|
};
|
|
|
|
// Forward declaration
|
|
struct FEventListener;
|
|
|
|
web::http::http_response handleCmd(const web::json::value& Data);
|
|
|
|
void HandleGET(web::http::http_request Msg);
|
|
void HandlePOST(web::http::http_request Msg);
|
|
void HandleDEL(web::http::http_request Msg);
|
|
void HandlePUT(web::http::http_request Msg);
|
|
void HandleOPTIONS(web::http::http_request Msg);
|
|
|
|
std::unique_ptr<web::http::experimental::listener::http_listener> Listener;
|
|
std::unique_ptr<FEventListener> PendingEvents;
|
|
};
|