@@ -25,7 +25,7 @@ class HTTPConnection(object):
2525 hostname, and optionally may include a port: for example,
2626 ``'http2bin.org'``, ``'http2bin.org:443'`` or ``'127.0.0.1'``.
2727 :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 .
2929 :param secure: (optional) Whether the request should use TLS.
3030 Defaults to ``False`` for most requests, but to ``True`` for any
3131 request issued to port 443.
@@ -42,7 +42,7 @@ class HTTPConnection(object):
4242 If not provided then hyper's default ``SSLContext`` is used instead.
4343 :param proxy_host: (optional) The proxy to connect to. This can be an IP address
4444 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
4646 and one also isn't provided in the ``proxy`` parameter, defaults to 8080.
4747 """
4848 def __init__ (self ,
@@ -59,12 +59,12 @@ def __init__(self,
5959 self ._host = host
6060 self ._port = port
6161 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
6464 }
6565 self ._h2_kwargs = {
6666 'window_manager' : window_manager , 'enable_push' : enable_push ,
67- 'secure' : secure , 'ssl_context' : ssl_context ,
67+ 'secure' : secure , 'ssl_context' : ssl_context ,
6868 'proxy_host' : proxy_host , 'proxy_port' : proxy_port
6969 }
7070
0 commit comments