engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FHttpServerModule类 参考

Module for HtttpServer Implementation 更多...

#include <HttpServerModule.h>

+ 类 FHttpServerModule 继承关系图:

Public 成员函数

HTTPSERVER_API TSharedPtr< IHttpRouter > GetHttpRouter (uint32 Port)
 Per-port-binding access to an http router 更多...
 
HTTPSERVER_API bool HasPendingListeners () const
 Determines if any listeners are pending operations 更多...
 
HTTPSERVER_API void StartAllListeners ()
 Starts all listeners
 
HTTPSERVER_API void StopAllListeners ()
 Stops all listeners
 
bool Tick (float DeltaTime) override
 FTicker callback 更多...
 
- Public 成员函数 继承自 IModuleInterface
virtual bool IsGameModule () const
 Returns true if this module hosts gameplay code 更多...
 
virtual void PostLoadCallback ()
 Called after the module has been reloaded
 
virtual void PreUnloadCallback ()
 Called before the module has been unloaded
 
virtual void ShutdownModule ()
 Called before the module is unloaded, right before the module object is destroyed. 更多...
 
virtual void StartupModule ()
 Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多...
 
virtual bool SupportsAutomaticShutdown ()
 Override this to set whether your module would like cleanup on application shutdown 更多...
 
virtual bool SupportsDynamicReloading ()
 Override this to set whether your module is allowed to be unloaded on the fly 更多...
 
virtual ~IModuleInterface ()
 Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface

 
- Public 成员函数 继承自 FTickerObjectBase
CORE_API FTickerObjectBase (float InDelay=0.0f, FTicker &Ticker=FTicker::GetCoreTicker())
 Constructor 更多...
 
virtual bool Tick (float DeltaTime)=0
 Pure virtual that must be overloaded by the inheriting class. 更多...
 
virtual CORE_API ~FTickerObjectBase ()
 Virtual destructor.
 

静态 Public 成员函数

static HTTPSERVER_API FHttpServerModule & Get ()
 Singleton-like access to this module's interface. 更多...
 
static HTTPSERVER_API bool IsAvailable ()
 Checks to see if this module is loaded and ready. 更多...
 

详细描述

Module for HtttpServer Implementation

成员函数说明

◆ Get()

static HTTPSERVER_API FHttpServerModule & FHttpServerModule::Get ( )
static

Singleton-like access to this module's interface.

This is just for convenience! Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.

返回
Returns singleton instance, loading the module on demand if needed

◆ GetHttpRouter()

HTTPSERVER_API TSharedPtr< IHttpRouter > FHttpServerModule::GetHttpRouter ( uint32  Port)

Per-port-binding access to an http router

参数
PortThe listener's bound port
返回
An IHttpRouter instance that can be leveraged to respond to HTTP requests

◆ HasPendingListeners()

HTTPSERVER_API bool FHttpServerModule::HasPendingListeners ( ) const

Determines if any listeners are pending operations

返回
true if there are pending listeners, false otherwise

◆ IsAvailable()

static HTTPSERVER_API bool FHttpServerModule::IsAvailable ( )
static

Checks to see if this module is loaded and ready.

It is only valid to call Get() if IsAvailable() returns true.

返回
True if the module is loaded and ready to use

◆ Tick()

bool FHttpServerModule::Tick ( float  DeltaTime)
overridevirtual

FTicker callback

参数
DeltaTimeThe time in seconds since the last tick
返回
false if no longer needs ticking, true otherwise

实现了 FTickerObjectBase.


该类的文档由以下文件生成: