15 def http(self, start_str, **kwargs): 16 sock_type = kwargs.get('sock_type', 'ipv4') 17 port = kwargs.get('port', 7080) 18 url = kwargs.get('url', '/') 19 http = 'HTTP/1.0' if 'http_10' in kwargs else 'HTTP/1.1' 20 21 headers = kwargs.get('headers', 22 {'Host': 'localhost', 'Connection': 'close'})
--- 333 unchanged lines hidden --- | 14 def http(self, start_str, **kwargs): 15 sock_type = kwargs.get('sock_type', 'ipv4') 16 port = kwargs.get('port', 7080) 17 url = kwargs.get('url', '/') 18 http = 'HTTP/1.0' if 'http_10' in kwargs else 'HTTP/1.1' 19 20 headers = kwargs.get('headers', 21 {'Host': 'localhost', 'Connection': 'close'})
--- 333 unchanged lines hidden --- |