http.py (1706:a1da56837554) http.py (1730:44912af5b3e6)
1import binascii
2import io
3import json
4import os
5import re
6import select
7import socket
8
9import pytest
1import binascii
2import io
3import json
4import os
5import re
6import select
7import socket
8
9import pytest
10from conftest import option
11from unit.main import TestUnit
10from unit.main import TestUnit
11from unit.option import option
12
13
14class TestHTTP(TestUnit):
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'

--- 336 unchanged lines hidden ---
12
13
14class TestHTTP(TestUnit):
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'

--- 336 unchanged lines hidden ---