Lines Matching refs:host
43 def host(host, status): function
45 client.get(headers={'Host': host, 'Connection': 'close'})['status']
166 host('example', 200)
167 host('www.example', 404)
168 host('example.com', 404)
169 host('exampl', 404)
589 host('localhost.', 200)
590 host('localhost.', 200)
591 host('.localhost', 404)
592 host('www.localhost', 404)
593 host('localhost1', 404)
608 host('127.0.0.1', 200)
609 host('127.0.0.1:7080', 200)
615 host('[::1]', 200)
616 host('[::1]:7080', 200)
623 host('example.com', 200)
630 host('example.com', 200)
631 host('www.example.com', 404)
632 host('!www.example.com', 200)
638 host('example.com', 200)
639 host('www.example.com', 404)
645 host('example.com', 200)
646 host('EXAMPLE.COM', 200)
652 host('example.com:7080', 200)
658 host('', 200)
937 host('Localhost', 200)
938 host('localhost.com', 404)
939 host('llocalhost', 404)
940 host('host', 404)
1077 host('', 200)