Support to get response headers and set extra headers on client