Skip to content

[Question] Peculiarities of WriteJsonAsync<TValue> #28

@kikaragyozov

Description

@kikaragyozov

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions