Running ASP.NET Core content negotiation by hand

added by DotNetKicks
9/20/2018 1:21:10 PM

2 Kicks, 129 Views

When you are building flexible HTTP APIs, supporting a wide array of different clients, it is common to rely on the process of content negotiation, to allow each client to interact with the API in the most convenient way - be it JSON, XML, Protobuf, Messagepack or any other media type on which both the client and the server can agree.