Skip to content

ExternKit/extern-js-superagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extern-js-superagent

  • Target : Javascript (NodeJS + Browser)
  • Library : superagent
  • Last tested version : 1.8.3
  • Available on : Github - NPM

Usage

import js.superagent.*;

class Main
{
  static function main()
  {
    var request = Superagent.request('...');
    request
      .post('/api/pet')
      .send({ name: 'Manny', species: 'cat' })
      .set('X-API-Key', 'foobar')
      .set('Accept', 'application/json')
      .end(function(error, response) {
        // Calling the end function will send the request 
      })
    ;
  }
}

About

Javascript superagent library extern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages