Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #211 from Lukasa/issue/210
Browse files Browse the repository at this point in the history
Fixup the default port in the docs.
  • Loading branch information
Lukasa committed Mar 17, 2016
2 parents 7aa2201 + 18d426f commit 2494811
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hyper/common/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class HTTPConnection(object):
hostname, and optionally may include a port: for example,
``'http2bin.org'``, ``'http2bin.org:443'`` or ``'127.0.0.1'``.
:param port: (optional) The port to connect to. If not provided and one also
isn't provided in the ``host`` parameter, defaults to 443.
isn't provided in the ``host`` parameter, defaults to 80.
:param secure: (optional) Whether the request should use TLS.
Defaults to ``False`` for most requests, but to ``True`` for any
request issued to port 443.
Expand All @@ -42,7 +42,7 @@ class HTTPConnection(object):
If not provided then hyper's default ``SSLContext`` is used instead.
:param proxy_host: (optional) The proxy to connect to. This can be an IP address
or a host name and may include a port.
:param proxy_port: (optional) The proxy port to connect to. If not provided
:param proxy_port: (optional) The proxy port to connect to. If not provided
and one also isn't provided in the ``proxy`` parameter, defaults to 8080.
"""
def __init__(self,
Expand All @@ -59,12 +59,12 @@ def __init__(self,
self._host = host
self._port = port
self._h1_kwargs = {
'secure': secure, 'ssl_context': ssl_context,
'proxy_host': proxy_host, 'proxy_port': proxy_port
'secure': secure, 'ssl_context': ssl_context,
'proxy_host': proxy_host, 'proxy_port': proxy_port
}
self._h2_kwargs = {
'window_manager': window_manager, 'enable_push': enable_push,
'secure': secure, 'ssl_context': ssl_context,
'secure': secure, 'ssl_context': ssl_context,
'proxy_host': proxy_host, 'proxy_port': proxy_port
}

Expand Down

0 comments on commit 2494811

Please sign in to comment.