How to add custom header to ASP.NET Core Web API response : <p>I am porting my API from Web API 2 to ASP.NET Core Web API.  I used to be able to add a custom header in the following manner:</p>

<pre><code>  HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
  response.Headers.Add("X-Total-Count", count.ToString());
  return ResponseMessage(response);
</code></pre>

<p>How does one add a custom header in ASP.NET Core Web API?</p>
