你的位置: 码友网首页 / 资讯源列表 / Read request headers as an object in ASP.Net Core

关于[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/

收录时间: 2020-09-30 浏览量: 1343 分类: ASP.NET Core

| 0 收藏 | 0