This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
ASP.NET Core & System.Net.Http.Formatting #5562
Closed
Description
Is System.Net.Http.Formatting
coming to ASP.NET Core? Specifically, ObjectContent
, ObjectContent<T>
, and the ReadAsAsync<T>()
extension methods for HttpClient
? I started looking into porting it but the change from MediaTypeFormatter
to IInputFormatter
and IOutputFormatter
- and more generally, the divergence of ASP.NET MVC's and HttpClient's HTTP models - makes things difficult for someone new to ASP.NET Core.
A couple of issues:
- The new formatters' dependence on the entire
HttpContext
(e.g., seeInputFormatterContext
) instead of just the type to be deserialized andHttpContent
- No default collection of formatters w/o using dependency injection (to get them from
MvcOptions
)
Metadata
Metadata
Assignees
Labels
No labels