1.0.3 • Published 4 years ago

https.js v1.0.3

Weekly downloads
3
License
MPL-2.0
Repository
github
Last release
4 years ago

https.js

codecov TAG NPM

This is a pure JavaScript small program, does not need third-party software support

Features

  • Pure JavaScript writing
  • A simple class file

Code Example

var url = "https://examples.com";
var res_function = function(res, status) {
  if( status == 200){ //ok
  	var responseText = JSON.parse(res);
  	// responseText
  }
}

var ARGUMENTS = {URL:url, RES_FUNCTION:res_function, HEADER:{'Content-type':'application/json;charset=UTF-8'}};
https(ARGUMENTS);

If you need to learn more, go to more examples.

Author

weibo: yakeing

twitter: yakeing

License

MPL-2.0

license