#NEWLINE# def request_received( self , headers , stream_id ) : #NEWLINE# #INDENT# headers = collections . OrderedDict ( headers ) #NEWLINE# data = json . dumps ( { #NEWLINE# #INDENT# 'headers' : headers , #NEWLINE# #UNINDENT# } , indent = 4 ) . encode ( 'utf-8' ) #NEWLINE# response_headers = ( ( ':status' , '200' ) , ( 'content-type' , 'application/json' ) , ( 'content-length' , len ( data ) ) , ( 'server' , 'eventlet-h2' ) ) #NEWLINE# self . conn . send_headers ( stream_id , response_headers ) #NEWLINE# self . conn . send_data ( stream_id , data , end_stream = True )