diff options
author | pgjones <philip.graham.jones@googlemail.com> | 2019-04-21 15:44:54 +0100 |
---|---|---|
committer | pgjones <philip.graham.jones@googlemail.com> | 2019-04-21 15:44:54 +0100 |
commit | aaa0ad0cfc118fddef5ca0aa24d3104ac0ba069d (patch) | |
tree | bb0fee761220b4343634e247cde2b649e3a139ac | |
parent | 93f6c3d10269c186095f779f0271b36c099ca4f6 (diff) |
Replace references to http2bin with nghttp2.org/httpbin/
The former is no longer maintained nor available, with the latter its
recommended replacement.
-rw-r--r-- | docs/source/basic-usage.rst | 8 | ||||
-rw-r--r-- | docs/source/twisted-head-example.rst | 4 | ||||
-rw-r--r-- | docs/source/twisted-post-example.rst | 2 | ||||
-rw-r--r-- | examples/twisted/head_request.py | 4 | ||||
-rw-r--r-- | examples/twisted/post_request.py | 4 |
5 files changed, 10 insertions, 12 deletions
diff --git a/docs/source/basic-usage.rst b/docs/source/basic-usage.rst index 4c21454..b9aab6c 100644 --- a/docs/source/basic-usage.rst +++ b/docs/source/basic-usage.rst @@ -221,13 +221,11 @@ shown below: .. code-block:: console - $ hyper GET http://http2bin.org/get + $ hyper GET https://nghttp2.org/httpbin/get {'args': {}, - 'headers': {'Connection': 'keep-alive', - 'Host': 'http2bin.org', - 'Via': '2 http2bin.org'}, + 'headers': {'Host': 'nghttp2.org'}, 'origin': '10.0.0.2', - 'url': 'http://http2bin.org/get'} + 'url': 'https://nghttp2.org/httpbin/get'} Assuming it works, you're now ready to start sending HTTP/2 data. diff --git a/docs/source/twisted-head-example.rst b/docs/source/twisted-head-example.rst index 2075352..df93b14 100644 --- a/docs/source/twisted-head-example.rst +++ b/docs/source/twisted-head-example.rst @@ -5,7 +5,7 @@ This example is a basic HTTP/2 client written for the `Twisted`_ asynchronous networking framework. This client is fairly simple: it makes a hard-coded HEAD request to -http2bin.org and prints out the response data. Its purpose is to demonstrate +nghttp2.org/httpbin/ and prints out the response data. Its purpose is to demonstrate how to write a very basic HTTP/2 client implementation. .. literalinclude:: ../../examples/twisted/head_request.py @@ -14,4 +14,4 @@ how to write a very basic HTTP/2 client implementation. :encoding: utf-8 -.. _Twisted: https://twistedmatrix.com/
\ No newline at end of file +.. _Twisted: https://twistedmatrix.com/ diff --git a/docs/source/twisted-post-example.rst b/docs/source/twisted-post-example.rst index 21bc8ac..7e3aba4 100644 --- a/docs/source/twisted-post-example.rst +++ b/docs/source/twisted-post-example.rst @@ -5,7 +5,7 @@ This example is a basic HTTP/2 client written for the `Twisted`_ asynchronous networking framework. This client is fairly simple: it makes a hard-coded POST request to -http2bin.org and prints out the response data, sending a file that is provided +nghttp2.org/httpbin/post and prints out the response data, sending a file that is provided on the command line or the script itself. Its purpose is to demonstrate how to write a HTTP/2 client implementation that handles flow control. diff --git a/examples/twisted/head_request.py b/examples/twisted/head_request.py index 72fe5f8..4a75380 100644 --- a/examples/twisted/head_request.py +++ b/examples/twisted/head_request.py @@ -23,8 +23,8 @@ from h2.events import ( ) -AUTHORITY = u'http2bin.org' -PATH = '/' +AUTHORITY = u'nghttp2.org' +PATH = '/httpbin/' SIZE = 4096 diff --git a/examples/twisted/post_request.py b/examples/twisted/post_request.py index 746f132..c817bac 100644 --- a/examples/twisted/post_request.py +++ b/examples/twisted/post_request.py @@ -30,8 +30,8 @@ from h2.events import ( ) -AUTHORITY = u'http2bin.org' -PATH = '/post' +AUTHORITY = u'nghttp2.org' +PATH = '/httpbin/post' class H2Protocol(Protocol): |