Lines Matching refs:resp
34 resp: Deferred<Uint8Array>; property
79 const resp = defer<Uint8Array>(); constant
81 QueuedRequest = {methodName, reqData: data, resp, id: this.nextReqId++};
87 return resp;
109 .then(resp => this.endFetch(resp, req.id))
113 private endFetch(resp: Response, expectedReqId: number) {
117 if (resp.status !== 200) {
118 req.resp.reject(`HTTP ${resp.status} - ${resp.statusText}`);
121 resp.arrayBuffer().then(arrBuf => {
127 req.resp.resolve(new Uint8Array(arrBuf));
144 const resp = await fetchWithTimeout( constant
148 if (resp.status !== 200) {
149 httpRpcState.failure = `${resp.status} - ${resp.statusText}`;
151 const buf = new Uint8Array(await resp.arrayBuffer());