Skip to content

ExternKit/extern-js-restify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extern-js-restify

  • Target : Javascript (NodeJS)
  • Library : restify
  • Last tested version : 4.0.4
  • Available on : Web - Github - NPM
  • Plugins :

Usage

import js.restify.*;

class Main
{
  static function main()
  {
    function respond(request : Request, response : Response, next : NextCallback) : Void {
      response.send('hello ${request.params.name}');
      next();
    }

    var server = Restify.createServer();
    server.get('/hello/:name', respond);
    server.head('/hello/:name', respond);

    server.listen(8080, function() {
      trace('${server.name} listening at ${server.url}');
    });
  }
}

About

NodeJS restify library extern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages