Not answering the actual question based on the technlogy in question, but anyway, the world moves forward in some areas; in AspNetCore.Mvc you can simply do:
[HttpGet()]
public ActionResult SubmitUserName( [FromHeader(Name = "user-Name")] string userName) {...}