@@ -25,7 +25,7 @@ class HTTPConnection(object):
25
25
hostname, and optionally may include a port: for example,
26
26
``'http2bin.org'``, ``'http2bin.org:443'`` or ``'127.0.0.1'``.
27
27
:param port: (optional) The port to connect to. If not provided and one also
28
- isn't provided in the ``host`` parameter, defaults to 443 .
28
+ isn't provided in the ``host`` parameter, defaults to 80 .
29
29
:param secure: (optional) Whether the request should use TLS.
30
30
Defaults to ``False`` for most requests, but to ``True`` for any
31
31
request issued to port 443.
@@ -42,7 +42,7 @@ class HTTPConnection(object):
42
42
If not provided then hyper's default ``SSLContext`` is used instead.
43
43
:param proxy_host: (optional) The proxy to connect to. This can be an IP address
44
44
or a host name and may include a port.
45
- :param proxy_port: (optional) The proxy port to connect to. If not provided
45
+ :param proxy_port: (optional) The proxy port to connect to. If not provided
46
46
and one also isn't provided in the ``proxy`` parameter, defaults to 8080.
47
47
"""
48
48
def __init__ (self ,
@@ -59,12 +59,12 @@ def __init__(self,
59
59
self ._host = host
60
60
self ._port = port
61
61
self ._h1_kwargs = {
62
- 'secure' : secure , 'ssl_context' : ssl_context ,
63
- 'proxy_host' : proxy_host , 'proxy_port' : proxy_port
62
+ 'secure' : secure , 'ssl_context' : ssl_context ,
63
+ 'proxy_host' : proxy_host , 'proxy_port' : proxy_port
64
64
}
65
65
self ._h2_kwargs = {
66
66
'window_manager' : window_manager , 'enable_push' : enable_push ,
67
- 'secure' : secure , 'ssl_context' : ssl_context ,
67
+ 'secure' : secure , 'ssl_context' : ssl_context ,
68
68
'proxy_host' : proxy_host , 'proxy_port' : proxy_port
69
69
}
70
70
0 commit comments