Skip to content

Http.PostJsonAsync(string, object) need to return the response #11455

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

Closed
yan0lovesha opened this issue Jun 21, 2019 · 1 comment
Closed

Http.PostJsonAsync(string, object) need to return the response #11455

yan0lovesha opened this issue Jun 21, 2019 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue

Comments

@yan0lovesha
Copy link

yan0lovesha commented Jun 21, 2019

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Currently only Http.PostJsonAsync() can deserialize the response body to type T. Most times we don't want to define a C# class to represent the response body. In this case people often call Http.PostJsonAsync() instead, but this one doesn't give any chance to access the response. I think either return a HttpResponseMessage or a string of the body are OK. A string body should be able to cover the most scenarios.

Describe alternatives you've considered

Additional context

@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jun 21, 2019
@pranavkm pranavkm added area-blazor Includes: Blazor, Razor Components and removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Jun 22, 2019
@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Jun 24, 2019
@mkArtakMSFT
Copy link
Contributor

Thanks for contacting us, @yan0lovesha.
We're tracking this issue as part of #10397

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants