diff --git a/.editorconfig b/.editorconfig index 532b12b6..559e66fe 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,4 @@ -# http://editorconfig.org +# https://editorconfig.org root = true [*] diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 126f4128..54433ad5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,8 +2,8 @@ Change Log ========== -This document records all notable changes to `HTTPie `_. -This project adheres to `Semantic Versioning `_. +This document records all notable changes to `HTTPie `_. +This project adheres to `Semantic Versioning `_. `2.0.0-dev`_ (unreleased) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 9ae0492a..f0126ac9 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -112,6 +112,6 @@ Don't forget to add yourself to `AUTHORS`_! .. _existing issues: https://github.com/jakubroztocil/httpie/issues?state=open .. _AUTHORS: https://github.com/jakubroztocil/httpie/blob/master/AUTHORS.rst .. _Makefile: https://github.com/jakubroztocil/httpie/blob/master/Makefile -.. _pytest: http://pytest.org/ -.. _Style Guide for Python Code: http://python.org/dev/peps/pep-0008/ +.. _pytest: https://pytest.org/ +.. _Style Guide for Python Code: https://python.org/dev/peps/pep-0008/ .. _test suite: https://github.com/jakubroztocil/httpie/tree/master/tests diff --git a/README.rst b/README.rst index bb72de7b..06e98307 100644 --- a/README.rst +++ b/README.rst @@ -63,7 +63,7 @@ macOS ----- -On macOS, HTTPie can be installed via `Homebrew `_ +On macOS, HTTPie can be installed via `Homebrew `_ (recommended): .. code-block:: bash @@ -537,7 +537,7 @@ fields using ``=@`` and ``:=@``: "married": false, "name": "John", "bookmarks": { - "HTTPie": "http://httpie.org", + "HTTPie": "https://httpie.org", } } @@ -610,7 +610,7 @@ To set custom headers you can use the ``Header:Value`` notation: .. code-block:: bash $ http example.org User-Agent:Bacon/1.0 'Cookie:valued-visitor=yes;foo=bar' \ - X-Foo:Bar Referer:http://httpie.org/ + X-Foo:Bar Referer:https://httpie.org/ .. code-block:: http @@ -620,7 +620,7 @@ To set custom headers you can use the ``Header:Value`` notation: Accept-Encoding: gzip, deflate Cookie: valued-visitor=yes;foo=bar Host: example.org - Referer: http://httpie.org/ + Referer: https://httpie.org/ User-Agent: Bacon/1.0 X-Foo: Bar @@ -1659,7 +1659,7 @@ Please use the following support channels: to ask questions, discuss features, and for general discussion. * `StackOverflow `_ to ask questions (please make sure to use the - `httpie `_ tag). + `httpie `_ tag). * Tweet directly to `@clihttp `_. * You can also tweet directly to `@jakubroztocil`_. @@ -1672,9 +1672,9 @@ Dependencies Under the hood, HTTPie uses these two amazing libraries: -* `Requests `_ +* `Requests `_ — Python HTTP library for humans -* `Pygments `_ +* `Pygments `_ — Python syntax highlighter @@ -1735,7 +1735,7 @@ have contributed. .. _pip: https://pip.pypa.io/en/stable/installing/ -.. _Github API: http://developer.github.com/v3/issues/comments/#create-a-comment +.. _Github API: https://developer.github.com/v3/issues/comments/#create-a-comment .. _these fine people: https://github.com/jakubroztocil/httpie/contributors .. _Jakub Roztocil: https://roztocil.co .. _@jakubroztocil: https://twitter.com/jakubroztocil @@ -1750,7 +1750,7 @@ have contributed. :alt: Test coverage .. |unix_build| image:: https://img.shields.io/travis/jakubroztocil/httpie/master.svg?style=flat-square&label=unix%20build - :target: http://travis-ci.org/jakubroztocil/httpie + :target: https://travis-ci.org/jakubroztocil/httpie :alt: Build status of the master branch on Mac/Linux .. |gitter| image:: https://img.shields.io/gitter/room/jkbrzt/httpie.svg?style=flat-square diff --git a/httpie/downloads.py b/httpie/downloads.py index 839869ca..a9a247c4 100644 --- a/httpie/downloads.py +++ b/httpie/downloads.py @@ -42,7 +42,7 @@ def parse_content_range(content_range, resumed_from): """ Parse and validate Content-Range header. - + :param content_range: the value of a Content-Range response header eg. "bytes 21010-47021/47022" diff --git a/httpie/input.py b/httpie/input.py index 102612f3..50604f46 100644 --- a/httpie/input.py +++ b/httpie/input.py @@ -25,7 +25,7 @@ from httpie.utils import load_json_preserve_order # ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) -# +# URL_SCHEME_RE = re.compile(r'^[a-z][a-z0-9.+-]*://', re.IGNORECASE) HTTP_POST = 'POST' diff --git a/httpie/plugins/base.py b/httpie/plugins/base.py index bbf53663..be8dc9f5 100644 --- a/httpie/plugins/base.py +++ b/httpie/plugins/base.py @@ -59,7 +59,7 @@ class AuthPlugin(BasePlugin): class TransportPlugin(BasePlugin): """ - http://docs.python-requests.org/en/latest/user/advanced/#transport-adapters + https://2.python-requests.org/en/latest/user/advanced/#transport-adapters """ diff --git a/httpie/sessions.py b/httpie/sessions.py index 0ae1dc27..3723bfb5 100644 --- a/httpie/sessions.py +++ b/httpie/sessions.py @@ -16,7 +16,7 @@ DEFAULT_SESSIONS_DIR = os.path.join(DEFAULT_CONFIG_DIR, SESSIONS_DIR_NAME) VALID_SESSION_NAME_PATTERN = re.compile('^[a-zA-Z0-9_.-]+$') # Request headers starting with these prefixes won't be stored in sessions. # They are specific to each request. -# http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Requests +# https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Requests SESSION_IGNORED_HEADER_PREFIXES = ['Content-', 'If-'] @@ -132,7 +132,7 @@ class Session(BaseConfigDict): """ :type jar: CookieJar """ - # http://docs.python.org/2/library/cookielib.html#cookie-objects + # https://docs.python.org/2/library/cookielib.html#cookie-objects stored_attrs = ['value', 'path', 'secure', 'expires'] self['cookies'] = {} for cookie in jar: diff --git a/httpie/utils.py b/httpie/utils.py index e5d9766d..9664bd69 100644 --- a/httpie/utils.py +++ b/httpie/utils.py @@ -26,7 +26,7 @@ def repr_dict_nice(d): def humanize_bytes(n, precision=2): # Author: Doug Latornell # Licence: MIT - # URL: http://code.activestate.com/recipes/577081/ + # URL: https://code.activestate.com/recipes/577081/ """Return a humanized string representation of a number of bytes. Assumes `from __future__ import division`. diff --git a/setup.py b/setup.py index eb4649ad..2d18d385 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ if 'bdist_wheel' not in sys.argv: # bdist_wheel extras_require = { - # http://wheel.readthedocs.io/en/latest/#defining-conditional-dependencies + # https://wheel.readthedocs.io/en/latest/#defining-conditional-dependencies 'python_version == "3.0" or python_version == "3.1"': ['argparse>=1.2.1'], ':sys_platform == "win32"': ['colorama>=0.2.4'], }