Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: chrome/common/extensions/docs/server2/app_engine_handler.py

Issue 15009006: Docserver: refactor Servlet, ObjectStore, and ServerInstance architecture to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cduvall, redirect fix Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from appengine_wrappers import webapp
6 from handler import Handler
7 from servlet import Request
8
9 class AppEngineHandler(webapp.RequestHandler):
10 '''Top-level handler for AppEngine requests. Just converts them into our
11 internal Servlet architecture.
12 '''
13 def get(self):
14 request = Request(self.request.path,
15 self.request.url[:-len(self.request.path)],
16 self.request.headers)
17 response = Handler(request).Get()
18 self.response.out.write(response.content.ToString())
19 self.response.headers.update(response.headers)
20 self.response.status = response.status
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698