Optionalconfiguration: Number of calls currently in flight.
Stop accepting new work, wait up to closeTimeout milliseconds for
calls in flight (redirects included), then destroy whatever remains
together with the connection pool. Idempotent; never rejects.
OptionalcloseTimeout: number = 0Optionalsignal: AbortSignal = ...StaticcreateOptionalconfiguration:
The Node.js transport, and the SDK default there. It is the full conformance profile: a private keep-alive connection pool that nothing else in the process shares, a connect timeout separate from the read deadline, at most
maxRedirectsredirects with caller headers dropped on a cross-origin hop, a streaming body cap that fails one chunk pastmaxResponseBytes, and a bounded drain onclose.It uses whatever proxy configuration Node applied to its own global agents at startup (
--use-env-proxyorNODE_USE_ENV_PROXY, Node 24.5 / 22.19 and later, readingHTTP_PROXY,HTTPS_PROXYandNO_PROXY), so it agrees withhttp.globalAgentin every case. A proxy installed on the globalfetchthroughundici.setGlobalDispatcher()is not seen here; an application using one injectsFetchHttpTransportinstead.Bodies are decoded transparently when a server compresses them; the body cap applies to the decoded bytes, which is what the SDK allocates.