"text/html; charset=utf-8") do { try response.status(HttpStatusCode.OK).send("Hello Kitura").end() } catch {} next() } // Listen on port 8090 let server = HttpServer.listen(8090, delegate: router) Server.run()
express(); app.get('/hello', function (req, res) { res.send('Hello World!'); }); app.listen(3000, function () { console.log('Example app listening on port 3000!'); });
... optional arguments: -h, --help show this help message and exit available commands: {create,update,invoke,get,delete,list} create create new action update update an existing action invoke invoke action get get action delete delete action list list all actions
[-h] [-u AUTH] [-p PARAM PARAM] [-b] [-r] name positional arguments: name the name of the action to invoke optional arguments: -h, --help show this help message and exit -u AUTH, --auth AUTH authorization key -p PARAM PARAM, --param PARAM PARAM parameters -b, --blocking blocking invoke -r, --result show only activation result if a blocking activation (unless there is a failure)