microsoft / microsoft/typespec
Use a "RetriableStream" when BufferResponse is set to false
Open
emitter:client:csharp
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
We currently support either buffering or not buffering responses via RequestOptions. If a user sets [BufferResponse](https://learn.microsoft.com/en-us/dotnet/api/system.clientmodel.primitives.requestoptions.bufferresponse?view=azure-dotnet#system-clientmodel-primitives-requestoptions-bufferresponse) to false, then we should use something like the [RetriableStream](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/src/Shared/RetriableStream.cs), so that the stream will automatically be retried. Consider also whether it should be integrated with Retry options.
Contributor guide
Assessment
This issue has not been assessed yet.