This repository was archived by the owner on Dec 14, 2018. It is now read-only.

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., see InputFormatterContext) instead of just the type to be deserialized and HttpContent
- No default collection of formatters w/o using dependency injection (to get them from
MvcOptions)