Pulling the sending of headers out into its own method in the Response class so it can be reused as desired elsewhere.