Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.

Repository from Github https://github.comAzure/azure-sdk-for-jsRepository from Github https://github.comAzure/azure-sdk-for-js

[core] Cancellation support in NodeJS response stream

deyaaeldeen opened this issue · comments

Currently we use the NodeJS.ReadableStream type as the type of response stream in the NodeJS client in core-rest-pipeline and ts-http-runtime. However, this type lacks an API to cancel the stream, even though the runtime http.IncomingMessage object does support cancellation via the destroy method.

This issue tracks updating the stream types in both core libraries to support the cancellation API:

  • core-rest-pipeline
  • ts-http-runtime