Home | History | Annotate | Download | only in resources
      1 import webapp2
      2 
      3 
      4 class LazyHandler(webapp2.RequestHandler):
      5     def get(self, **kwargs):
      6         self.response.out.write('I am a laaazy view.')
      7 
      8 
      9 class CustomMethodHandler(webapp2.RequestHandler):
     10     def custom_method(self):
     11         self.response.out.write('I am a custom method.')
     12 
     13 
     14 def handle_exception(request, response, exception):
     15     return webapp2.Response(body='Hello, custom response world!')
     16