Adding headers to a request is slightly different than adding headers to a response. HTTP headers belong in the initial part of the message-the header indeed. HTTP Response Headers in ASP.NET Core - Simple Talkīy design, HTTP headers are additional and optional pieces of information in the form of name/value pairs that travel between the client and the server with the request and/or the response.