Skip to content

ExternKit/extern-js-supertest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extern-js-supertest

  • Target : Javascript (NodeJS)
  • Library : superagent
  • Last tested version : 1.2.0
  • 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

NodeJS supertest library extern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages