Hacker News new | past | comments | ask | show | jobs | submit login

Hello, actually you now can, I've made it similiar to the Java syntax, but if you want a more "PHP" style:

  unirest.get('http://httpbin.org/gzip', { 'Accept': 'gzip' }, 'Hello World', function (response) { });
or

  var Request = unirest.get('http://httpbin.org/gzip', { 'Accept': 'gzip' }, 'Hello World');
  Request.end(function (response) {});



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: