pair of helper functions for getting and setting http headers