code stringlengths 3 6.57k |
|---|
decode('latin1') |
isinstance(v, unicode) |
for (k, v) |
HeaderProperty('Content-Type') |
HeaderProperty('Content-Length', reader=int) |
datetime.utcfromtimestamp(parse_date(x) |
http_date(x) |
charset(self, default='UTF-8') |
header (default: utf8) |
self.content_type.split('charset=') |
split(';') |
strip() |
set_cookie(self, name, value, secret=None, **options) |
seconds. (default: None) |
timestamp. (default: None) |
cookie.
(default: current domain) |
path (default: current path) |
connections (default: off) |
cookie
(default: off, requires Python 2.6 or newer) |
set (default) |
SimpleCookie() |
touni(cookie_encode((name, value) |
isinstance(value, basestring) |
TypeError('Secret key missing for non-string Cookie.') |
len(value) |
ValueError('Cookie value to long.') |
options.items() |
isinstance(value, timedelta) |
isinstance(value, (datedate, datetime) |
value.timetuple() |
isinstance(value, (int, float) |
time.gmtime(value) |
time.strftime("%a, %d %b %Y %H:%M:%S GMT", value) |
key.replace('_', '-') |
delete_cookie(self, key, **kwargs) |
self.set_cookie(key, '', **kwargs) |
__repr__(self) |
name.title() |
value.strip() |
_local_property() |
threading.local() |
fget(_) |
RuntimeError("Request context not initialized.") |
fset(_, value) |
fdel(_) |
property(fget, fset, fdel, 'Thread-local property') |
LocalRequest(BaseRequest) |
class (:data:`request`) |
request (even on a multithreaded server) |
_local_property() |
LocalResponse(BaseResponse) |
class (:data:`response`) |
_local_property() |
_local_property() |
_local_property() |
_local_property() |
_local_property() |
HTTPResponse(Response, BottleException) |
__init__(self, body='', status=None, headers=None, **more_headers) |
super(HTTPResponse, self) |
__init__(body, status, headers, **more_headers) |
apply(self, other) |
HTTPError(HTTPResponse) |
super(HTTPError, self) |
__init__(body, status, **options) |
PluginError(BottleException) |
JSONPlugin(object) |
__init__(self, json_dumps=json_dumps) |
apply(self, callback, _) |
wrapper(*a, **ka) |
callback(*a, **ka) |
_e() |
isinstance(rv, dict) |
dumps(rv) |
isinstance(rv, HTTPResponse) |
isinstance(rv.body, dict) |
dumps(rv.body) |
TemplatePlugin(object) |
options (e.g. `template_engine`) |
apply(self, callback, route) |
route.config.get('template') |
isinstance(conf, (tuple, list) |
len(conf) |
view(conf[0], **conf[1]) |
isinstance(conf, str) |
view(conf) |
_ImportRedirect(object) |
__init__(self, name, impmask) |
imports (see PEP 302) |
sys.modules.setdefault(name, imp.new_module(name) |
sys.meta_path.append(self) |
find_module(self, fullname, path=None) |
fullname.rsplit('.', 1) |
load_module(self, fullname) |
fullname.rsplit('.', 1) |
__import__(realname) |
setattr(self.module, modname, module) |
MultiDict(DictMixin) |
__init__(self, *a, **k) |
dict((k, [v]) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.