wrap long lines
This commit is contained in:
parent
72811e20e0
commit
ec370fbc02
|
@ -20,8 +20,20 @@ host_header_re = re.compile(r"^(?P<host>[^:]+|\[.+\])(?::(?P<port>\d+))?$")
|
|||
|
||||
|
||||
class RequestData(message.MessageData):
|
||||
def __init__(self, first_line_format, method, scheme, host, port, path, http_version, headers=(), content=None,
|
||||
timestamp_start=None, timestamp_end=None):
|
||||
def __init__(
|
||||
self,
|
||||
first_line_format,
|
||||
method,
|
||||
scheme,
|
||||
host,
|
||||
port,
|
||||
path,
|
||||
http_version,
|
||||
headers=(),
|
||||
content=None,
|
||||
timestamp_start=None,
|
||||
timestamp_end=None
|
||||
):
|
||||
if isinstance(method, six.text_type):
|
||||
method = method.encode("ascii", "strict")
|
||||
if isinstance(scheme, six.text_type):
|
||||
|
|
|
@ -17,8 +17,16 @@ from typing import Union # noqa
|
|||
|
||||
|
||||
class ResponseData(message.MessageData):
|
||||
def __init__(self, http_version, status_code, reason=None, headers=(), content=None,
|
||||
timestamp_start=None, timestamp_end=None):
|
||||
def __init__(
|
||||
self,
|
||||
http_version,
|
||||
status_code,
|
||||
reason=None,
|
||||
headers=(),
|
||||
content=None,
|
||||
timestamp_start=None,
|
||||
timestamp_end=None
|
||||
):
|
||||
if isinstance(http_version, six.text_type):
|
||||
http_version = http_version.encode("ascii", "strict")
|
||||
if isinstance(reason, six.text_type):
|
||||
|
|
Loading…
Reference in New Issue