1.0.0 • Published 9 years ago
steeplejack-restify v1.0.0
Steeplejack Restify
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.
Option | Type | Description | |
---|---|---|---|
certificate | String | If you want to create an HTTPS server, pass in the path to PEM-encoded certificate and key | |
key | String | If you want to create an HTTPS server, pass in the path to PEM-encoded certificate and key | |
formatters | Object | Custom response formatters for res.send() | |
log | Object | You can optionally pass in a bunyan instance; not required | |
name | String | By default, this will be set in the Server response header, default is restify | |
spdy | Object | Any options accepted by node-spdy | |
version | String | Array | A default version to set for all routes |
handleUpgrades | Boolean | Hook the upgrade event from the node HTTP server, pushing Connection: Upgrade requests through the regular request handling chain; defaults to false | |
httpsServerOptions | Object | Any 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