Lines Matching refs:from

681         obj["content-disposition"] = Buffer.from(obj["content-disposition"]).toString("latin1");
703 ret[contentDispositionIdx] = Buffer.from(ret[contentDispositionIdx]).toString("latin1");
773 yield Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
782 if (ReadableStream.from) {
783 return ReadableStream.from(convertIterableToBuffer(iterable));
798 const buf = Buffer.isBuffer(value) ? value : Buffer.from(value);
2565 needle = Buffer.from(needle);
2597 chunk = Buffer.from(chunk, "binary");
2736 var B_DCRLF = Buffer.from("\r\n\r\n");
2839 var B_ONEDASH = Buffer.from("-");
2840 var B_CRLF = Buffer.from("\r\n");
3122 data = Buffer.from(data, sourceEncoding);
3140 data = Buffer.from(data, sourceEncoding);
3149 data = Buffer.from(data, sourceEncoding);
3158 data = Buffer.from(data, sourceEncoding);
4658 return Uint8Array.from(output);
5197 name = Buffer.from(name).toString("utf8");
5199 value = Buffer.from(value).toString("utf8");
5481 chunks.push(Buffer.from(base64chunk.slice(0, end), "base64"));
5485 chunks.push(Buffer.from(base64chunk, "base64"));
5680 throw Object.assign(new TypeError("Failed to parse URL from " + url), {
6110 throw new TypeError("Failed to parse URL from " + input, { cause: err });
6114 "Request cannot be constructed from a URL that includes credentials: " + input
6153 // from the current client.
6341 'If request is made from ReadableStream, mode should be "same-origin" or "cors"'
7322 this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null;
7324 this.body = body.byteLength ? Buffer.from(body) : null;
7326 this.body = body.length ? Buffer.from(body) : null;
8703 mod = await WebAssembly.compile(Buffer.from(require_llhttp_simd_wasm(), "base64"));
8705 mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || require_llhttp_wasm(), "base64"));
8869 message = "Response does not match the HTTP/1.1 protocol (" + Buffer.from(llhttp.memory.buffer, ptr, len).toString() + ")";
9843 const buffer = Buffer.from(await body.arrayBuffer());
12137 * Take n bytes from the buffered Buffers
12373 const value = Buffer.from(data);
12381 const value = Buffer.from(data);
12389 const ab = Buffer.from(data, data.byteOffset, data.byteLength);
12399 const value = Buffer.from(ab);
12506 * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol