Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a decorator to indicate to the generator that service's response content stream should not be buffered #820

Open
4 tasks done
annelo-msft opened this issue May 10, 2024 · 0 comments
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@annelo-msft
Copy link
Member

Clear and concise description of the problem

In .NET Azure clients, we buffer response content by default in the client pipeline. This feature can be turned off for service methods that return a network stream to the end user. An example of this in a DPG client is shown here.

@m-nash has shared that TypeSpec does not currently provide a way to indicate to the generator that is should write a service method with response content buffering disabled. We have requested this feature from the generator here: Azure/autorest.csharp#4693

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For feature request in the typespec language or core libraries file it in the TypeSpec repo
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@markcowl markcowl added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library
Projects
None yet
Development

No branches or pull requests

3 participants