'Get the HTTP method + URL from requests'

def get_http_url(self, method, host, path, headers):

    if ((method != None) and (path != None)):
        if ((host != '') and (not re.match(('(http(s)?://)?' + host), path))):
            http_url_req = (((method + '    ') + host) + path)
        else:
            http_url_req = ((method + '    ') + path)
        http_url_req = self.url_filter(http_url_req)
        return http_url_req
