关于[Read request headers as an object in ASP.Net Core]的摘要:
Reading headers is a standard operation in ASP.NET Core and has been around for ages. I even wrote a post summarizing all methods of passing parameters: ASP.NET Core in .NET 5 – pass parameters to actions. ASP.NET Core introduced handy attributes to handle parameters in controller methods, like [FromQuery] or [FromHeader]. But is there a way to use those attributes and read headers as a custom object? Let’s see.
原文地址: https://www.michalbialecki.com/2020/09/28/read-request-headers-as-an-object-in-asp-net-core-api/