<s> """<STR_LIT>""" <EOL> from werkzeug . wrappers import ( <EOL> Request as RequestBase , <EOL> Response as ResponseBase , <EOL> ) <EOL> from werkzeug . utils import cached_property <EOL> from . helpers import json , _assert_have_json <EOL> class Request ( RequestBase ) : <EOL> """<STR_LIT>""" <EOL> endpoint = None <EOL> view_args = None <EOL> routing_exception = None <EOL> @ property <EOL> def module ( self ) : <EOL> """<STR_LIT>""" <EOL> if self . endpoint and '<STR_LIT:.>' in self . endpoint : <EOL> return self . endpoint . rsplit ( '<STR_LIT:.>' , <NUM_LIT:1> ) [ <NUM_LIT:0> ] <EOL> @ cached_property <EOL> def json ( self ) : <EOL> """<STR_LIT>""" <EOL> if __debug__ : <EOL> _assert_have_json ( ) <EOL> if self . mimetype == '<STR_LIT:application/json>' : <EOL> return json . loads ( self . data ) <EOL> class Response ( ResponseBase ) : <EOL> """<STR_LIT>""" <EOL> default_mimetype = '<STR_LIT>' </s>
