In WebApi I used to do this on my BaseApiController:
Request.GetOwinContext().Response.Headers.Add("X-Pagination", new[] { Newtonsoft.Json.JsonConvert.SerializeObject(paginationHeader) });
I'm converting to ASP.NET v5, and I get the error:
HttpRequest does not contain a definition for GetOwinContext
Any pointers?