1.0.0 • Published 9 years ago

steeplejack-restify v1.0.0

Weekly downloads
12
License
MIT
Repository
github
Last release
9 years ago

Steeplejack Restify

Gitter NPM Version NPM Downloads Node.js Version Build Status Dependencies Dev Depedencies

Restify strategy for Steeplejack

Usage

In your main Steeplejack run method, you will need to configure your Restify strategy like this...

import {Restify} from "steeplejack-restify";
import {Server} from "steeplejack/lib/server";

app.run(($config) => {
    let server = new Server($config.server, new Restify());

    return server;
});

This is the minimal config. The Restify constructor accepts all the arguments that createServer method does.

OptionTypeDescription
certificateStringIf you want to create an HTTPS server, pass in the path to PEM-encoded certificate and key
keyStringIf you want to create an HTTPS server, pass in the path to PEM-encoded certificate and key
formattersObjectCustom response formatters for res.send()
logObjectYou can optionally pass in a bunyan instance; not required
nameStringBy default, this will be set in the Server response header, default is restify
spdyObjectAny options accepted by node-spdy
versionStringArrayA default version to set for all routes
handleUpgradesBooleanHook the upgrade event from the node HTTP server, pushing Connection: Upgrade requests through the regular request handling chain; defaults to false
httpsServerOptionsObjectAny options accepted by node-https Server. If provided the following restify server options will be ignored: spdy, ca, certificate, key, passphrase, rejectUnauthorized, requestCert and ciphers; however these can all be specified on httpsServerOptions.

License

MIT License

1.0.0

9 years ago

1.0.0-10

9 years ago

1.0.0-9

9 years ago

1.0.0-8

9 years ago

1.0.0-7

9 years ago

1.0.0-6

9 years ago

1.0.0-5

9 years ago

1.0.0-4

9 years ago

1.0.0-3

9 years ago

1.0.0-2

9 years ago

1.0.0-1

9 years ago

1.0.0-0

9 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago