remove getAllHeaders function + add code which return as same as getallheaders