http2

API description
__http2 Help you to send the http2 request.

Native binding API

__http2

  • Content

__http2({
  url:    // string
}, function(data) {
  // callback function
});
  • Example

__wifi({
  mode: 'station', // default is station
  auth: 'PSK_WPA2',
  ssid: 'mcs',
  password: 'mcs12345678',
});

global.eventStatus.on('wifiConnect', function() {
  __http2({url: 'https://http2.akamai.com/'}, function(data){
    print(data);
  });
});

results matching ""

    No results matching ""