add header method to the query object