Skip to content

Commit

Permalink
feat: add an onRequestEnd event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Jul 23, 2018
1 parent 757360d commit a5da70b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/RServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ export default class {
request.on('data', Util.generateCallback(this.onRequestData, this,
[request, response, bufferDetails]
));

//handle on data event
request.on('end', Util.generateCallback(this.onRequestEnd, this,
[request, response, bufferDetails]
));
}

/**
Expand Down

0 comments on commit a5da70b

Please sign in to comment.