Added hostname getter to http adapter