#NEWLINE# def _on_reply_headers( self ) : #NEWLINE# #INDENT# 'Signal emitted before reading response body, after getting headers\n        ' #NEWLINE# reply = self . sender ( ) #NEWLINE# request = reply . request ( ) #NEWLINE# self . _handle_reply_cookies ( reply ) #NEWLINE# self . _run_webpage_callbacks ( request , 'on_response_headers' , reply ) #NEWLINE# har = self . _get_har ( ) #NEWLINE# if ( har is not None ) : #NEWLINE# #INDENT# har . store_reply_headers_received ( self . _get_request_id ( request ) , reply ) #NEWLINE# #UNINDENT# self . log ( 'Headers received for {url}' , reply , min_level = 3 )