Is there a way to get the protocol in Connect/Express 3

Is there a way to get the protocol (http|https) in Express?

req.protocol:

app.get('/protocol', function (req, res) {
    res.send(req.protocol);
});

Though, you may also need to enable trust proxy for your application:

app.configure('production', function () {
    app.enable('trust proxy');
});