Event receiver for structure version

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-06 23:21:04 -03:00
parent 680731d8b9
commit 854d4e38cb
1 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ function is_http_request_valid(req, res, config) {
return valid;
}
function HTTPBinary(configuration){
function HTTPStructured(configuration){
this.config = configuration;
this.config["headers"] = {
@ -52,7 +52,7 @@ function HTTPBinary(configuration){
}
}
HTTPBinary.prototype.receive = function(){
HTTPStructured.prototype.receive = function(){
this.server;
var self = this;
@ -95,8 +95,8 @@ HTTPBinary.prototype.receive = function(){
});
}
HTTPBinary.prototype.stop = function() {
HTTPStructured.prototype.stop = function() {
this.server.close();
}
module.exports = HTTPBinary;
module.exports = HTTPStructured;