Skip to content
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
@smarts

Description

@smarts

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions