你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

HttpResponseBodyInit type

Represents the body types that can be used in an HTTP response. This is a local definition to avoid dependency on lib.dom. Compatible with Node.js native Fetch API body types. Includes Node.js Readable streams and AsyncIterable for HTTP streaming scenarios.

type HttpResponseBodyInit =
  | ReadableStream
  | Readable
  | Blob
  | ArrayBufferView
  | ArrayBuffer
  | AsyncIterable<Uint8Array>
  | FormData
  | URLSearchParams
  | string
  | null
  | undefined