Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2012 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 google.appengine.api import urlfetch | |
| 6 | |
| 7 class AppEngineUrlFetcher(object): | |
|
not at google - send to devlin
2012/07/18 10:39:15
documentation
cduvall
2012/07/18 21:26:10
Done.
| |
| 8 def __init__(self, base_path): | |
| 9 self._base_path = base_path | |
| 10 | |
| 11 def fetch(self, url): | |
|
not at google - send to devlin
2012/07/18 10:39:15
These should all be Google-style, like Fetch.
cduvall
2012/07/18 21:26:10
Done.
| |
| 12 return urlfetch.fetch(self._base_path + '/' + url) | |
| 13 | |
| 14 def create_rpc(self): | |
| 15 return urlfetch.create_rpc() | |
| 16 | |
| 17 def make_fetch_call(self, rpc, path): | |
|
not at google - send to devlin
2012/07/18 10:39:15
This *is* the appengine API, I know; but it could
cduvall
2012/07/18 21:26:10
Done.
| |
| 18 return urlfetch.make_fetch_call(rpc, self._base_path + '/' + path) | |
| OLD | NEW |