getCookie method

  1. @VoltronMethod(kGetCookieMethodName)
bool getCookie(
  1. String url,
  2. JSPromise promise
)

**

  • 获取指定url下的Cookie
  • @param url 指定url,其实也就是指定作用域,如:http://3g.qq.com

Implementation

@VoltronMethod(kGetCookieMethodName)
bool getCookie(String url, JSPromise promise) {
  VoltronHttpAdapter adapter = context.globalConfigs.httpAdapter;
  adapter.getCookie(url, promise);
  return true;
}