class e{cortexResponse;cortexBody;headers;ok;redirected;status;statusText;trailer;type;url;body;bodyUsed;constructor(e){this.cortexResponse=e,this.cortexBody=e.body,this.headers=new Headers(e.headers),this.ok=e.ok,this.redirected=e.redirected,this.status=e.status,this.trailer=Promise.resolve(new Headers(e.trailer)),this.type=e.type,this.url=e.url,this.body=new ReadableStream({start(e){e.enqueue(this.cortexBody),e.close()}}),this.bodyUsed=!1}clone(){return new e({...this.cortexResponse})}arrayBuffer(){const e=(new TextEncoder).encode(this.cortexBody);return Promise.resolve(e.buffer)}blob(){return Promise.reject("blob() unimplemented")}formData(){return Promise.reject("formData() unimplemented")}json(){try{return Promise.resolve(JSON.parse(this.cortexBody))}catch(e){return Promise.reject(e)}}text(){return Promise.resolve(this.cortexBody)}}export{e as default};
//# sourceMappingURL=ShimResponse.js.map
