Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Add [FromHeader] for model binding #1671

@rynowak

Description

@rynowak

This is a new model binding attribute that specifies that the value should come from a header value on the request.

This will allow binding a header value on an action parameter or property (of a DTO) as a string, or string[] - based on the value of Request.Headers.Get(..)/GetValues(...)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions