Debian Codegraph @

testing/web-platform/tests/tools/third_party/h2/docs/source/twisted-head-example.rst

raw
1 Twisted Example Client: Head Requests
2 =====================================
3
4 This example is a basic HTTP/2 client written for the `Twisted`_ asynchronous
5 networking framework.
6
7 This client is fairly simple: it makes a hard-coded HEAD request to
8 nghttp2.org/httpbin/ and prints out the response data. Its purpose is to demonstrate
9 how to write a very basic HTTP/2 client implementation.
10
11 .. literalinclude:: ../../examples/twisted/head_request.py
12 :language: python
13 :linenos:
14 :encoding: utf-8
15
16
17 .. _Twisted: https://twistedmatrix.com/