How to use the restify-clients.createJSONClient function in restify-clients

To help you get started, we’ve selected a few restify-clients examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github restify / errors / test / index.js View on Github external
before(function(done) {
            server = restify.createServer({
                name: 'restifyErrors'
            });
            client = restifyClients.createJSONClient({
                url: 'http://localhost:3000'
            });
            server.listen(3000, done);
        });

restify-clients

HttpClient, StringClient, and JsonClient extracted from restify

MIT
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis