CenterEdge / Yardarm

OpenAPI 3 SDK Generator for C#
Apache License 2.0
45 stars 6 forks source link

Use ResponseHeadersRead for streaming #197

Closed brantburnett closed 1 year ago

brantburnett commented 1 year ago

We can improve performance for streaming HTTP responses by using HttpCompletionOption.ResponseHeadersRead when making the request. This will allow the response to be streamed rather than copying the entire response to a buffer before returning.

However, there are dangers that may need to be addressed:

For these reasons, we may want to consider: