add substitute method getallheaders for those missing it