olsh/curl-to-csharp

response.Content.ReadAsStringAsync()

TDroogers opened this issue · 2 comments

Thanks!

However, the only thing missing from the response was var result = await response.Content.ReadAsStringAsync()

olsh commented

Hi @TDroogers

Glad to hear that the tool is useful.

However, the only thing missing from the response was var result = await response.Content.ReadAsStringAsync()

There are many options for response handling. ReadAsStringAsync method is not universal.
The response may not have content at all. Or you may want to read stream/bytes/headers. It's up to a developer how to handle responses.

Oke, thanks