Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias Assign NameStore Str Assign NameStore Str Assign NameStore Num ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For TupleStore NameStore NameStore NameLoad body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str NameLoad TupleLoad Str Str TupleLoad Str NameLoad TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad keyword NameLoad keyword Dict Str ListLoad Str Expr Call NameLoad Call NameLoad NameLoad NameLoad Num NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A 
head_request.py
~~~~~~~~~~~~~~~

A short example that demonstrates a client that makes HEAD requests to certain
websites.

This example is intended as a reproduction of nghttp2 issue 396, for the
purposes of compatibility testing.
 __future__ print_function twisted.internet reactor twisted.internet.endpoints connectProtocol SSL4ClientEndpoint twisted.internet.protocol Protocol twisted.internet.ssl optionsForClientTLS hyperframe.frame SettingsFrame h2.connection H2Connection h2.events ResponseReceived DataReceived RemoteSettingsChanged StreamEnded StreamReset SettingsAcknowledged N/A AUTHORITY http2bin.org N/A PATH / N/A SIZE 4096 H2Protocol N/A Protocol N/A __init__ N/A N/A self N/A N/A N/A N/A self conn N/A H2Connection N/A N/A self known_proto None N/A N/A self request_made False N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self conn initiate_connection N/A N/A N/A N/A self conn update_settings N/A N/A SettingsFrame HEADER_TABLE_SIZE SIZE N/A N/A N/A N/A self transport write N/A N/A N/A self conn data_to_send N/A dataReceived N/A N/A self data N/A N/A N/A N/A N/A self known_proto N/A N/A N/A self known_proto N/A N/A N/A self transport getNextProtocol N/A N/A N/A self known_proto h2 N/A events N/A N/A N/A self conn receive_data data N/A event events N/A N/A N/A isinstance event ResponseReceived N/A N/A N/A N/A self handleResponse N/A event headers N/A event stream_id N/A N/A N/A isinstance event DataReceived N/A N/A N/A N/A self handleData N/A event data N/A event stream_id N/A N/A N/A isinstance event StreamEnded N/A N/A N/A N/A self endStream N/A event stream_id N/A N/A N/A isinstance event SettingsAcknowledged N/A N/A N/A N/A self settingsAcked event N/A N/A N/A isinstance event StreamReset N/A N/A N/A N/A reactor stop N/A N/A RuntimeError N/A Stream reset: %d N/A event error_code N/A N/A N/A print event N/A data N/A N/A N/A self conn data_to_send N/A data N/A N/A N/A N/A N/A self transport write data N/A settingsAcked N/A N/A self event N/A N/A N/A N/A N/A self request_made N/A N/A N/A N/A self sendRequest N/A handleResponse N/A N/A self response_headers stream_id N/A N/A N/A N/A name value response_headers N/A N/A N/A print N/A %s: %s N/A name value N/A N/A print N/A handleData N/A N/A self data stream_id N/A N/A N/A N/A print data end N/A endStream N/A N/A self stream_id N/A N/A N/A N/A N/A N/A self conn close_connection N/A N/A N/A N/A self transport write N/A N/A N/A self conn data_to_send N/A N/A N/A N/A self transport loseConnection N/A N/A N/A reactor stop N/A sendRequest N/A N/A self N/A N/A N/A request_headers N/A N/A :method HEAD N/A :authority AUTHORITY N/A :scheme https N/A :path PATH N/A user-agent hyper-h2/1.0.0 N/A N/A N/A N/A self conn send_headers 1 request_headers end_stream True N/A N/A self request_made True N/A N/A N/A options N/A optionsForClientTLS hostname AUTHORITY extraCertificateOptions N/A nextProtocols N/A h2 N/A N/A connectProtocol N/A SSL4ClientEndpoint reactor AUTHORITY 443 options N/A H2Protocol N/A N/A N/A reactor run