#NEWLINE# def proxy_protocol( self , line ) : #NEWLINE# #INDENT# '        Detect, check and parse proxy protocol.\n\n        :raises: ForbiddenProxyRequest, InvalidProxyLine.\n        :return: True for proxy protocol line else False\n        ' #NEWLINE# if ( not self . cfg . proxy_protocol ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( self . req_number != 1 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( not line . startswith ( 'PROXY' ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# self . proxy_protocol_access_check ( ) #NEWLINE# self . parse_proxy_protocol ( line ) #NEWLINE# return True