fynjs API
    Preparing search index...

    Function stream

    • Streams the response body of a request directly into a Writable destination stream or file path. Automatically enforces throwOnHttpError: true. If destination is a file path string, cleans up partial file on abort or error.

      Parameters

      • url: string | URL
      • destination: string | WritableStream
      • Optionaloptions: FynFetchOptions

      Returns Promise<Response>