共用方式為


StreamableMethod type

定義支援取得回應本文作為原始資料流程的方法型別

type StreamableMethod<TResponse> = PromiseLike<TResponse> & {
  asBrowserStream: () => Promise<HttpBrowserStreamResponse>
  asNodeStream: () => Promise<HttpNodeStreamResponse>
}