关于[Returning XML from minimal APIs in .NET 6]的摘要:
In this post I show how you can return an XML response from a minimal API instead of the typical JSON response. I also look at ways to reduce the overhead introduced by MemoryStream in the implementation.
原文地址: https://andrewlock.net/returning-xml-from-minimal-apis-in-dotnet-6/