#NEWLINE# def __init__( self , environ , start_response ) : #NEWLINE# #INDENT# if ( not self . logger ) : #NEWLINE# #INDENT# self . logger = logging . Logger ( __name__ ) #NEWLINE# #UNINDENT# self . logger . info ( '__init__ called' ) #NEWLINE# path = environ [ 'PATH_INFO' ] #NEWLINE# if ( self . strip_path and ( len ( path ) > 1 ) and path . endswith ( '/' ) ) : #NEWLINE# #INDENT# path = path [ 0 : ( - 1 ) ] #NEWLINE# #UNINDENT# self . request = Request ( path = path , method = environ [ 'REQUEST_METHOD' ] , environ = environ ) #NEWLINE# self . response = Response ( status_code = 200 ) #NEWLINE# self . environ = environ #NEWLINE# self . start = start_response #NEWLINE# self . response . set_header ( 'Content-Type' , 'application/json' )