// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include #include #include #include namespace zen { class ProjectStore; class ZenCacheStore; struct VfsServiceImpl; /** Virtual File System service Implements support for exposing data via a virtual file system interface. Currently this is primarily used to surface various data stored in the local storage service to users for debugging and exploration purposes. Currently, it surfaces information from the structured cache service and from the project store. */ class VfsService : public HttpService, public IHttpStatusProvider { public: explicit VfsService(HttpStatusService& StatusService, VfsServiceImpl* ServiceImpl); ~VfsService(); protected: virtual const char* BaseUri() const override; virtual void HandleRequest(HttpServerRequest& HttpServiceRequest) override; virtual void HandleStatusRequest(HttpServerRequest& Request) override; private: VfsServiceImpl* m_Impl = nullptr; HttpStatusService& m_StatusService; HttpRequestRouter m_Router; friend struct VfsServiceDataSource; }; } // namespace zen