title: How to send back data to Chrome Extension from webapp2?
body: <p>I have a Chrome Extension which sends data to Google App Engine(webapp2).</p>
  
  <pre><code>chrome.extension.onMessage.addListener(function (message, sender, sendResponse) {
  
  if (message.paragraphs_ready) {
  
      $.ajax({
          url: 'http://my_website.appspot.com/',
          type: 'POST',
          data: {'paragraphs_ready': message.paragraphs_ready},
          contentType: "application/x-www-form-urlencoded",
          //dataType: 'json',
          success: function(){
              alert("Server received my data");
          }
      });
  }
  
  });
  </code></pre>
  
  <p>GAE(webapp2) processes data and should send a response back to Chrome Extension. I don't want to go for Channel Python API if possible.</p>
  
  <pre><code>class DataProcessing(webapp2.RequestHandler):
      """This Handler is responsible for the Processing"""
      def post(self):
  
      to_be_processed = cgi.escape(self.request.POST['paragraphs_ready'])
  
      def my_proc(to_be_processed):
          return to_be_processed
  
      self.response.write(my_proc(to_be_processed)
  </code></pre>