Skip to content

Commit

Permalink
[doc] Small update to code docs
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jun 26, 2011
1 parent 4f85ca0 commit 9d9509f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/node-http-proxy.js
Expand Up @@ -312,6 +312,7 @@ HttpProxy.prototype.close = function () {
// #### @req {ServerRequest} Incoming HTTP Request to proxy.
// #### @res {ServerResponse} Outgoing HTTP Request to write proxied data to.
// #### @options {Object} Options for the outgoing proxy request.
//
// options.port {number} Port to use on the proxy target host.
// options.host {string} Host of the proxy target.
// options.buffer {Object} Result from `httpProxy.buffer(req)`
Expand Down Expand Up @@ -552,6 +553,18 @@ HttpProxy.prototype._forwardRequest = function (req) {
});
};

//
// ### function proxyWebSocketRequest (req, socket, head, options)
// #### @req {ServerRequest} Websocket request to proxy.
// #### @socket {net.Socket} Socket for the underlying HTTP request
// #### @head {string} Headers for the Websocket request.
// #### @options {Object} Options to use when proxying this request.
//
// options.port {number} Port to use on the proxy target host.
// options.host {string} Host of the proxy target.
// options.buffer {Object} Result from `httpProxy.buffer(req)`
// options.https {Object|boolean} Settings for https.
//
HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, options) {
var self = this,
listeners = {},
Expand Down

0 comments on commit 9d9509f

Please sign in to comment.