From 854d4e38cb49243b18505db6da5e8104a35136ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Thu, 6 Jun 2019 23:21:04 -0300 Subject: [PATCH] Event receiver for structure version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- ...{receiver_binary_0_2.js => receiver_structured_0_2.js} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename lib/bindings/http/{receiver_binary_0_2.js => receiver_structured_0_2.js} (92%) diff --git a/lib/bindings/http/receiver_binary_0_2.js b/lib/bindings/http/receiver_structured_0_2.js similarity index 92% rename from lib/bindings/http/receiver_binary_0_2.js rename to lib/bindings/http/receiver_structured_0_2.js index 19b6aac..77caea0 100644 --- a/lib/bindings/http/receiver_binary_0_2.js +++ b/lib/bindings/http/receiver_structured_0_2.js @@ -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;