puerts icon indicating copy to clipboard operation
puerts copied to clipboard

[Unreal]如何使用第三方库在Typescript发送restful请求

Open hefujie1988 opened this issue 3 years ago • 4 comments

有谁使用过的,可以提供个思路吗

hefujie1988 avatar Jul 27 '21 03:07 hefujie1988

封装第三方库给ts用。 这有封装的示例:https://github.com/chexiongsheng/puerts_unreal_demo/blob/master/Plugins/Puerts/Source/JsEnv/Private/TestBinding/TestClassWrap.cpp 这是调用上述api:https://github.com/chexiongsheng/puerts_unreal_demo/blob/master/TsProj/CDataTest.ts

chexiongsheng avatar Jul 27 '21 06:07 chexiongsheng

client side还是server side?

Jayatubi avatar Jul 30 '21 10:07 Jayatubi

客户端服务器方面?

client side还是server side?

client,就是在Typescript脚本那里请求接口数据

hefujie1988 avatar Aug 05 '21 02:08 hefujie1988

UE4的HTTP模块提供方法FHttpModule::CreateRequest创建HTTP请求,可以自行包装之后在puer里面使用。

Jayatubi avatar Aug 05 '21 02:08 Jayatubi