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

[Question] Peculiarities of WriteJsonAsync<TValue> #28

Open
kikaragyozov opened this issue Jun 3, 2020 · 0 comments
Open

[Question] Peculiarities of WriteJsonAsync<TValue> #28

kikaragyozov opened this issue Jun 3, 2020 · 0 comments

Comments

@kikaragyozov
Copy link

kikaragyozov commented Jun 3, 2020

Greetings @davidfowl !

Awhile back I needed help with something, and you helped answer my issue.

The way your library handles parsing for the HttpResponse object - is it superior to the suggested answer there?

In my case, I first parse the object to a json string (using JsonSerializer.Deserialize), and then I pass it to the HttpResponse object by its WriteAsync method, which utilizes the new System.IO.Pipelines API, followed by a HttpResponse.Body.FlushAsync call.

Looking forward to hearing from you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant