Skip to content

InsightRequest (JavaScript) ​

InsightRequest ​

Scripting Name:Insight.InsightRequest

(只读)发起一个对洞见服务器的网络请求。

javascript
constructor(request_id: string, headers: string, params: string);

Parameters

  • request_id : string 由洞见 MR 平台提供的 ID
  • headers : string 保留值,可以填空值
  • params : string 请求参数。是一个一维的 JSON 字典。如
  • _在 Web _SDK__中无效
  • 洞见__SDK_ v2.0 及以上_

Properties ​


error ​

type :string

(只读)请求过程中出现错误的描述字符串。

isDone ​

type :boolean

(只读)是否已经请求完成或者请求出错。

isError ​

type :boolean

(只读)是否收到了网络错误的 code。

requestID ​

type :string

(只读)请求地址。

responseCode ​

type :number

(只读)请求结果代码。

downloadedBytes ​

type :number

(只读)请求到的字节数。

downloadHandler ​

type :string

(只读)请求到的内容。