UNPKG

fetch-to-node

Version:

Node.js-compatible request and response objects for WinterTC runtimes

12 lines (11 loc) 457 B
/* * Copyright Michael Hart * Licensed under the MIT license. See LICENSE file for details. * * Portions of this file Copyright Fastly, Inc. See LICENSE file for details. * Portions of this file Copyright Joyent, Inc. and other Node contributors. See LICENSE file for details. */ /* These items copied from Node.js: node/lib/internal/streams/state.js. */ export function getDefaultHighWaterMark(objectMode) { return objectMode ? 16 : 64 * 1024; }