Header values

Header values can be bound to parameters in your method by placing the [FromHeader("Header Name")] attribute on the bounded parameter and stating the name of the header you wish to bind to.

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.