1import{Aa as n,Ea as o}from"./chunk-FICYTAQ6.js";var a=class t{constructor(e){this.response=e}getHeader(e){return this.response.getHeader(e)}setHeader(e,s){return this.response&&this.response.header(e,s),this}appendHeader(e,s,r=","){if(this.response){let i=this.getHeader(e);if(!i)return this.setHeader(e,s);let h=[...i.split(r),s].filter((p,d,c)=>d===c.indexOf(p)).join(r);this.response.header(e,h)}return this}setHeaders(e){return this.response&&Object.keys(e).forEach(s=>this.setHeader(s,e[s])),this}setStatus(e,s){return this.response&&(this.response.statusCode=e,s&&(this.response.statusMessage=s)),this}setNotFound(e="not found"){return this.response&&(this.response.statusCode=404,this.response.statusMessage=e),this}setError(e="internal server error"){return this.response&&(this.response.statusCode=500,this.response.statusMessage=e),this}setRedirect(e){return this.response&&(this.response.statusCode=301,this.response.redirectUrl=e),this}static{this.\u0275fac=function(s){return new(s||t)(o("RESPONSE",8))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac})}};export{a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.