http.py (1608:283a8bcf8d2e) http.py (1635:97afbb6c5a15)
1import binascii
2import io
3import json
4import os
1import binascii
2import io
3import json
4import os
5import pytest
6import re
7import select
8import socket
9import time
10
5import re
6import select
7import socket
8import time
9
11from unit.main import TestUnit
10import pytest
12from conftest import option
11from conftest import option
12from unit.main import TestUnit
13
14
15class TestHTTP(TestUnit):
16 def http(self, start_str, **kwargs):
17 sock_type = kwargs.get('sock_type', 'ipv4')
18 port = kwargs.get('port', 7080)
19 url = kwargs.get('url', '/')
20 http = 'HTTP/1.0' if 'http_10' in kwargs else 'HTTP/1.1'

--- 347 unchanged lines hidden ---
13
14
15class TestHTTP(TestUnit):
16 def http(self, start_str, **kwargs):
17 sock_type = kwargs.get('sock_type', 'ipv4')
18 port = kwargs.get('port', 7080)
19 url = kwargs.get('url', '/')
20 http = 'HTTP/1.0' if 'http_10' in kwargs else 'HTTP/1.1'

--- 347 unchanged lines hidden ---