Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 251 Bytes
import urllib2
from stats import log_request
class HTTPClient(object):
def __init__(self, base_url):
self.base_url = base_url
@log_request
def get(self, url, name=None):
return urllib2.urlopen(self.base_url + url).read()