title: Getting Host field from HTTP request in BaseHTTPRequestHandler
body: <p>I'm writing a script using BaseHTTPRequestHandler class. And in <code>do_GET(self)</code> method I need to get the content of the <code>Host</code> field from the HTTP request. I can do it by regexping the <code>str(self.headers)</code> like proposed here: <a href="https://stackoverflow.com/questions/2958408/determine-site-domain-in-basehttpserver">Determine site domain in BaseHTTPServer</a>, but it's kinda ugly and I wonder if there's cleaner way to do that.</p>
  
  <p>Thanks in advance.</p>