def host_port(self):
     host_string = self.request.get_host()
     return split_host_and_port(host_string=host_string,
                                scheme=self.request.get_type())
Пример #2
0
 def host_port(self):
     res = urllib.parse.urlparse(self.full_url)
     if res:
         return split_host_and_port(host_string=res.netloc,
                                    scheme=res.scheme)
     return None, None
Пример #3
0
 def host_port(self):
     host_string = self.request.host
     return split_host_and_port(host_string=host_string,
                                scheme=self.request.type)
 def host_port(self):
     res = urlparse.urlparse(self.full_url)
     if res:
         return split_host_and_port(host_string=res.netloc,
                                    scheme=res.scheme)
     return None, None
 def host_port(self):
     host_string = self.request.get_host()
     return split_host_and_port(host_string=host_string,
                                scheme=self.request.get_type())