mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 09:54:11 +00:00
15 lines
415 B
Plaintext
15 lines
415 B
Plaintext
|
@Permission("Http")
|
|||
|
@Description("这是Http请求示例")
|
|||
|
contract HttpExample{
|
|||
|
@Description("http get,参数示例: http://www.baidu.com")
|
|||
|
export function get(arg){
|
|||
|
var ret = HttpUtil.httpGet(arg);
|
|||
|
return ret;
|
|||
|
}
|
|||
|
@Description("http post,参数示例: {\"url\":\"http://www.baidu.com\",\"data\":\"ddd\"}")
|
|||
|
export function post(arg){
|
|||
|
var ret = HttpUtil.httpPost(arg);
|
|||
|
return ret;
|
|||
|
}
|
|||
|
}
|