"use strict";var Headers=function(){this.clear()};Headers.prototype.ALLOWED_DUPLICATES=["set-cookie","set-cookie2","warning","www-authenticate"],Headers.prototype.clear=function(){this._sent={},this._lines=[]},Headers.prototype.set=function(t,e){if(void 0!==e){t=this._strip(t),e=this._strip(e);var s=t.toLowerCase();(!this._sent.hasOwnProperty(s)||this.ALLOWED_DUPLICATES.indexOf(s)>=0)&&(this._sent[s]=!0,this._lines.push(t+": "+e+"\r\n"))}},Headers.prototype.toString=function(){return this._lines.join("")},Headers.prototype._strip=function(t){return t.toString().replace(/^ */,"").replace(/ *$/,"")},module.exports=Headers;