microsoft / microsoft/typespec

Use a "RetriableStream" when BufferResponse is set to false

Open
#5,326 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.