This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
// See comments below. | |
// This code sample and justification brought to you by | |
// Isaac Z. Schlueter, aka isaacs | |
// standard style | |
var a = "ape", | |
b = "bat", | |
c = "cat", | |
d = "dog", |
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.
// | |
// tested with kerberos 0.0.12 on linux against apache running mod_auth_kerb with Samba AD providing KDC | |
// | |
var Kerberos = require('kerberos').Kerberos; | |
var kerberos = new Kerberos(); | |
var http = require('http'); | |
function httpget(opts, callback) { | |
console.log('submitting to '+(opts.hostname||opts.host)+' with authorization header: '+(opts.headers||{}).authorization); | |
var req = http.get(opts, function(res) { |
Postman | API Development Environment https://www.getpostman.com
Insomnia REST Client - https://insomnia.rest/
Features | Insomnia | Postman | Notes |
---|---|---|---|
Create and send HTTP requests | x | x | |
Authorization header helpers | x | x | Can create "Authorization" header for you for different authentication schemes: Basic, Digest, OAuth, Bearer Token, HAWK, AWS |