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

Add support for [Header] activation attribute #799

Closed
pranavkm opened this issue Jul 15, 2014 · 1 comment
Closed

Add support for [Header] activation attribute #799

pranavkm opened this issue Jul 15, 2014 · 1 comment

Comments

@pranavkm
Copy link
Contributor

Similar to #798, with the intent that the data is read from Http headers.

An overload for this would take a string value that specifies the header to bind from:

[Header]
public string Accept { get; set; }

[Header("X-Version")]
public Version ApiVersion { get; set; }

Maybe some smarts: (?)

[Header]
public MimeType ContentType { get; set; }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants