![]() |
Kiwano Engine
v1.2.x
|
HTTP模块 更多...
#include <HttpModule.h>
Public 成员函数 | |
void | Send (HttpRequestPtr request) |
发送HTTP请求 更多... | |
void | SetTimeoutForConnect (Duration timeout) |
设置连接超时时长 | |
Duration | GetTimeoutForConnect () const |
获取连接超时时长 | |
void | SetTimeoutForRead (Duration timeout) |
设置读取超时时长 | |
Duration | GetTimeoutForRead () const |
获取读取超时时长 | |
void | SetSSLVerification (const String &root_certificate_path) |
设置SSL证书地址 | |
const String & | GetSSLVerification () const |
获取SSL证书地址 | |
virtual void | SetupModule () override |
启动模块 | |
virtual void | DestroyModule () override |
销毁模块 | |
![]() | |
virtual void | OnUpdate (UpdateModuleContext &ctx) |
更新时 更多... | |
virtual void | HandleEvent (EventModuleContext &ctx) |
事件处理 更多... | |
virtual void | BeforeRender (RenderModuleContext &ctx) |
渲染前 更多... | |
virtual void | OnRender (RenderModuleContext &ctx) |
渲染时 更多... | |
virtual void | AfterRender (RenderModuleContext &ctx) |
渲染后 更多... | |
额外继承的成员函数 | |
![]() | |
using | object_type = HttpModule |
![]() | |
static object_type & | GetInstance () |
static object_type * | GetInstancePtr () |
![]() | |
Singleton (const Singleton &)=delete | |
Singleton & | operator= (const Singleton &)=delete |
![]() | |
static HttpModule | instance_ |
HTTP模块
void kiwano::network::HttpModule::Send | ( | HttpRequestPtr | request | ) |
发送HTTP请求
[in] | request | HTTP请求 |
发送请求后,无论结束或失败都将调用请求的响应回调函数