Renamed headersAsReply to updateHeadersForReply.