Upgrade requests to 2.10.0 to enable optional SOCKS support

Closes #86
This commit is contained in:
Jakub Roztocil 2016-07-02 14:58:34 +02:00
parent 595dc51b2d
commit bfc64bce21
3 changed files with 20 additions and 1 deletions

View File

@ -17,6 +17,8 @@ This project adheres to `Semantic Versioning <http://semver.org/>`_.
* Added ``--default-scheme <URL_SCHEME>``.
* Added fish shell completion (located in ``extras/httpie-completion.fish``
in the Github repo).
* Updated ``requests`` to 2.10.0 so that SOCKS support can be added via
``pip install requests[socks]``.
* Changed the default JSON ``Accept`` header from ``application/json``
to ``application/json, */*``.

View File

@ -713,6 +713,23 @@ In your ``~/.bash_profile``:
export NO_PROXY=localhost,example.com
SOCKS
-----
To enable SOCKS proxy support please install ``requests[socks]`` using ``pip``:
.. code-block::bash
$ pip install -U requests[socks]
Usage is the same as for other types of `proxies`_:
.. code-block::bash
$ http --proxy=http:socks5://user:pass@host:port --proxy=https:socks5://user:pass@host:port example.org
=====
HTTPS
=====

View File

@ -35,7 +35,7 @@ tests_require = [
install_requires = [
'requests>=2.3.0',
'requests>=2.10.0',
'Pygments>=1.5'
]