Get_hostname error

There was a function in kong utils named get_hostname in kong 2.0.3.
When I am upgrading to 2.7,it gives an error and when i looked in the utils file,there was no get_hostname function.

Is it being replaced by anything else.