Event receiver for structure version
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
		
							parent
							
								
									680731d8b9
								
							
						
					
					
						commit
						854d4e38cb
					
				| 
						 | 
					@ -36,7 +36,7 @@ function is_http_request_valid(req, res, config) {
 | 
				
			||||||
  return valid;
 | 
					  return valid;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function HTTPBinary(configuration){
 | 
					function HTTPStructured(configuration){
 | 
				
			||||||
  this.config = configuration;
 | 
					  this.config = configuration;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  this.config["headers"] = {
 | 
					  this.config["headers"] = {
 | 
				
			||||||
| 
						 | 
					@ -52,7 +52,7 @@ function HTTPBinary(configuration){
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HTTPBinary.prototype.receive = function(){
 | 
					HTTPStructured.prototype.receive = function(){
 | 
				
			||||||
  this.server;
 | 
					  this.server;
 | 
				
			||||||
  var self = this;
 | 
					  var self = this;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -95,8 +95,8 @@ HTTPBinary.prototype.receive = function(){
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HTTPBinary.prototype.stop = function() {
 | 
					HTTPStructured.prototype.stop = function() {
 | 
				
			||||||
  this.server.close();
 | 
					  this.server.close();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = HTTPBinary;
 | 
					module.exports = HTTPStructured;
 | 
				
			||||||
		Loading…
	
		Reference in New Issue