Home / Function/ asyncIterableToBodyProps() — astro Function Reference

asyncIterableToBodyProps() — astro Function Reference

Architecture documentation for the asyncIterableToBodyProps() function in node.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  016d571b_9fb9_5b2d_c6ac_c32be295efac["asyncIterableToBodyProps()"]
  81a03fae_a2bc_f6d1_94ef_f29ffefe8af6["node.ts"]
  016d571b_9fb9_5b2d_c6ac_c32be295efac -->|defined in| 81a03fae_a2bc_f6d1_94ef_f29ffefe8af6
  9cb69406_37f9_feaf_3969_5295fdd738f4["makeRequestBody()"]
  9cb69406_37f9_feaf_3969_5295fdd738f4 -->|calls| 016d571b_9fb9_5b2d_c6ac_c32be295efac
  style 016d571b_9fb9_5b2d_c6ac_c32be295efac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/app/node.ts lines 289–300

function asyncIterableToBodyProps(iterable: AsyncIterable<any>): RequestInit {
	return {
		// Node uses undici for the Request implementation. Undici accepts
		// a non-standard async iterable for the body.
		// @ts-expect-error
		body: iterable,
		// The duplex property is required when using a ReadableStream or async
		// iterable for the body. The type definitions do not include the duplex
		// property because they are not up-to-date.
		duplex: 'half',
	};
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does asyncIterableToBodyProps() do?
asyncIterableToBodyProps() is a function in the astro codebase, defined in packages/astro/src/core/app/node.ts.
Where is asyncIterableToBodyProps() defined?
asyncIterableToBodyProps() is defined in packages/astro/src/core/app/node.ts at line 289.
What calls asyncIterableToBodyProps()?
asyncIterableToBodyProps() is called by 1 function(s): makeRequestBody.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free