{"size": 801, "ext": "js", "max_stars_repo_path": "node_modules/http-server/node_modules/union/lib/request-stream.js", "max_stars_repo_name": "clapierre/clapierre.github.io", "max_stars_repo_stars_event_min_datetime": "2020-02-18T02:17:57.000Z", "max_stars_repo_stars_event_max_datetime": "2020-02-18T02:17:57.000Z", "max_issues_repo_path": "minified/node_modules/http-server/node_modules/union/lib/request-stream.js", "max_issues_repo_name": "benetech/forms", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "minified/node_modules/http-server/node_modules/union/lib/request-stream.js", "max_forks_repo_name": "benetech/forms", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 801.0, "max_line_length": 801, "alphanum_fraction": 0.7915106117}
var url=require("url"),util=require("util"),qs=require("qs"),HttpStream=require("./http-stream");var RequestStream=module.exports=function(a){a=a||{};HttpStream.call(this,a);this.on("pipe",this.pipeRequest);this.request=a.request};util.inherits(RequestStream,HttpStream);RequestStream.prototype.pipeRequest=function(a){this.url=this.originalUrl=a.url;this.method=a.method;this.httpVersion=a.httpVersion;this.httpVersionMajor=a.httpVersionMajor;this.httpVersionMinor=a.httpVersionMinor;this.setEncoding=a.setEncoding;this.connection=a.connection;this.socket=a.socket;if(a.query){this.query=a.query}else{this.query=~a.url.indexOf("?")?qs.parse(url.parse(a.url).query):{}}};["setEncoding"].forEach(function(a){RequestStream.prototype[a]=function(){return this.request[a].apply(this.request,arguments)}});