共用方式為


StreamableMethod type

定義方法的類型,這個方法支援取得回應本文做為原始數據流

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