diff options
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/http/request.py | 16 | ||||
-rw-r--r-- | netlib/http/response.py | 12 |
2 files changed, 24 insertions, 4 deletions
diff --git a/netlib/http/request.py b/netlib/http/request.py index d59fead4..666a5869 100644 --- a/netlib/http/request.py +++ b/netlib/http/request.py @@ -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): diff --git a/netlib/http/response.py b/netlib/http/response.py index 7866c142..ae29298f 100644 --- a/netlib/http/response.py +++ b/netlib/http/response.py @@ -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): |