Lines Matching refs:res
153 const { 0: res } = await once(req, 'response');
155 const hasLocation = ObjectPrototypeHasOwnProperty(res.headers, 'location');
156 if (isRedirect(res.statusCode) && hasLocation) {
157 const location = new URL(res.headers.location, parsed);
160 res.headers.location,
169 if (res.statusCode === 404) {
176 if (res.statusCode < 200 || res.statusCode >= 300) {
178 res.headers.location,
182 const { headers } = res;
196 'content-type': res.headers['content-type'],
199 let bodyStream = res;
200 if (res.headers['content-encoding'] === 'br') {
201 bodyStream = compose(res, createBrotliDecompress());
203 res.headers['content-encoding'] === 'gzip' ||
204 res.headers['content-encoding'] === 'deflate'
206 bodyStream = compose(res, createUnzip());