headers method adds Authorization header containing bearer token to an object argument