#NEWLINE# def process( self , request , render_options , operation , data ) : #NEWLINE# #INDENT# scheme = str ( request . url ( ) . scheme ( ) ) . lower ( ) #NEWLINE# if ( scheme not in self . allowed_schemes ) : #NEWLINE# #INDENT# if ( self . verbosity >= 2 ) : #NEWLINE# #INDENT# log . msg ( ( 'Dropped %s because of URI scheme' % ( request_repr ( request , operation ) , ) ) , system = 'request_middleware' ) #NEWLINE# #UNINDENT# drop_request ( request ) #NEWLINE# #UNINDENT# return request