Msf::Exploit::Remote::HttpClient already provides a peer method which returns just that