Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SolSaviour/INFO1112-Materials
/ functions
Functions
341 in github.com/SolSaviour/INFO1112-Materials
⨍
Functions
341
◇
Types & classes
68
↳
Endpoints
5
Method
_set_status
(self, status)
Week 6/server.py:1707
Method
add_filter
Add a filter. The provided function is called with the configuration string as parameter and must return a (regexp, to_python, to_url) tuple.
Week 6/server.py:341
Method
add_path
Add a new path to the list of search paths. Return False if the path does not exist. :param path: The new search path. Relat
Week 6/server.py:2666
Method
address_string
(self)
Week 6/server.py:3247
Method
app
Bottle application handling this request.
Week 6/server.py:1172
Method
app
(environ, start_response)
Week 6/server.py:3361
Method
append
(self, key, value)
Week 6/server.py:2251
Method
apply
(self, other)
Week 6/server.py:1953
Method
apply
(self, callback, route)
Week 6/server.py:2036
Method
auth
HTTP authentication data as a (user, password) tuple. This implementation currently supports basic (not digest) authentication
Week 6/server.py:1505
Function
auth_basic
Callback decorator to require HTTP auth (basic). TODO: Add route(check_auth=...) parameter.
Week 6/server.py:3149
Method
body
The HTTP request body as a seek-able file-like object. Depending on :attr:`MEMFILE_MAX`, this is either a temporary file or a
Week 6/server.py:1370
Method
charset
Return the charset specified in the content-type header (default: utf8).
Week 6/server.py:1797
Method
chunked
True if Chunked transfer encoding was.
Week 6/server.py:1380
Method
close
(self)
Week 6/server.py:1693
Method
close
(self)
Week 6/server.py:2641
Method
co
(self)
Week 6/server.py:3957
Method
code
(self)
Week 6/server.py:3961
Method
content_length
The request body length as an integer. The client is responsible to set this header. Otherwise, the real length of the body is unknown
Week 6/server.py:1480
Method
content_type
The Content-Type header as a lowercase-string (default: empty).
Week 6/server.py:1487
Function
cookie_decode
Verify and decode an encoded string. Return an object or None.
Week 6/server.py:3065
Function
cookie_encode
Encode and sign a pickle-able object. Return a (byte) string
Week 6/server.py:3055
Method
cookies
Cookies parsed into a :class:`FormsDict`. Signed cookies are NOT decoded. Use :meth:`get_cookie` if you expect signed cookies.
Week 6/server.py:1208
Method
copy
Returns a copy of self.
Week 6/server.py:1676
Function
debug
Change the debug level. There is only one debug level supported at the moment.
Week 6/server.py:2943
Method
decorator
(func)
Week 6/server.py:711
Method
default
(self)
Week 6/server.py:2609
Method
default_error_handler
(self, res)
Week 6/server.py:975
Method
delete
Equals :meth:`route` with a ``DELETE`` method parameter.
Week 6/server.py:945
Method
delete_cookie
Delete a cookie. Be sure to use the same `domain` and `path` settings as used to create the cookie.
Week 6/server.py:1889
Method
error
Register an output handler for a HTTP error code. Can be used as a decorator or called directly :: def error_handler_500
Week 6/server.py:953
Function
fdel
(_)
Week 6/server.py:1915
Function
fget
(_)
Week 6/server.py:1906
Method
filename
Name of the file on the client file system, but normalized to ensure file system compatibility. An empty filename is returned as 'empty'.
Week 6/server.py:2752
Method
files
File uploads parsed from `multipart/form-data` encoded POST or PUT request body. The values are instances of :class:`FileUpload`.
Week 6/server.py:1269
Method
filter
(self, names)
Week 6/server.py:2263
Method
find_module
(self, fullname, path=None)
Week 6/server.py:2061
Method
fixed_environ
(environ, start_response)
Week 6/server.py:3226
Method
forms
Form values parsed from an `url-encoded` or `multipart/form-data` encoded POST or PUT request body. The result is returned as a
Week 6/server.py:1245
Function
fset
(_, value)
Week 6/server.py:1912
Method
fullpath
Request path including :attr:`script_name` (if present).
Week 6/server.py:1450
Method
get
(self, value, default=None)
Week 6/server.py:1540
Method
get
Return the most recent value for a key. :param default: The default value to be returned if the key is not present or
Week 6/server.py:2151
Method
get
(self, key, default=None, index=-1)
Week 6/server.py:2260
Method
get_callback_args
Return a list of argument names the callback (most likely) accepts as keyword arguments. If the callback is a decorated function, try
Week 6/server.py:598
Method
get_config
Lookup a config field and return its value, first checking the route.config, then route.app.config.
Week 6/server.py:604
Method
get_cookie
Return the content of a cookie. To read a `Signed Cookie`, the `secret` must match the one used to create the cookie (see :me
Week 6/server.py:1214
Method
get_event_loop
(self)
Week 6/server.py:3509
Method
get_event_loop
(self)
Week 6/server.py:3549
Method
get_header
Return the value of a request header, or a given default value.
Week 6/server.py:1203
Method
get_header
Return the value of a previously defined header. If there is no header with that name, return a default value.
Week 6/server.py:1752
Method
get_syntax
Tokens as a space separated string (default: <% %> % {{ }})
Week 6/server.py:4088
Method
get_url
Return a string that matches a named route
Week 6/server.py:870
Method
getall
Return a (possibly empty) list of values for a key.
Week 6/server.py:2176
Method
getall
(self, key)
Week 6/server.py:2257
Method
getargs
(path)
Week 6/server.py:415
Method
global_config
This reads or sets the global settings stored in class.settings.
Week 6/server.py:3846
Method
headerlist
WSGI conform list of (header, value) tuples.
Week 6/server.py:1772
Method
headers
A :class:`WSGIHeaderDict` that provides case-insensitive access to HTTP request headers.
Week 6/server.py:1198
Method
headers
An instance of :class:`HeaderDict`, a case-insensitive dict-like view on the response headers.
Week 6/server.py:1733
Method
hook
Return a decorator that attaches a callback to a hook. See :meth:`add_hook` for details.
Week 6/server.py:707
Function
html_quote
Escape and quote a string to be used as an HTTP attribute.
Week 6/server.py:3092
Function
index
()
Week 6/server.py:4418
Method
init
(self, parser, opts, args)
Week 6/server.py:3452
Method
is_ajax
Alias for :attr:`is_xhr`. "Ajax" is not the right term.
Week 6/server.py:1500
Method
is_xhr
True if the request was triggered by a XMLHttpRequest. This only works with JavaScript libraries that support the `X-Requested-With`
Week 6/server.py:1492
Method
iter_headers
Yield (header, value) tuples, skipping headers that are not allowed with the current response status code.
Week 6/server.py:1766
Method
iterallitems
(self)
Week 6/server.py:2145
Method
iterkeys
(self)
Week 6/server.py:2136
Method
itervalues
(self)
Week 6/server.py:2139
Method
json
If the ``Content-Type`` header is ``application/json`` or ``application/json-rpc``, this property holds the parsed content of
Week 6/server.py:1282
Method
keys
(self)
Week 6/server.py:1556
Method
load
(self)
Week 6/server.py:3455
Method
load_module
(self, fullname)
Week 6/server.py:2067
Method
load_module
Load values from a Python module. Example modue ``config.py``:: DEBUG = True SQLITE = {
Week 6/server.py:2350
Method
loader
(self, name)
Week 6/server.py:3933
Method
log_request
(*args, **kw)
Week 6/server.py:3250
Method
match
Search for a matching route and return a (:class:`Route` , urlargs) tuple. The second value is a dictionary with parameters extracted
Week 6/server.py:864
Method
merge
Merge the routes of another :class:`Bottle` application or a list of :class:`Route` objects into this application. The routes keep their
Week 6/server.py:804
Method
meta_list
Return an iterable of meta field names defined for a key.
Week 6/server.py:2536
Method
method
The ``REQUEST_METHOD`` value as an uppercase string.
Week 6/server.py:1193
Method
mount
Mount an application (:class:`Bottle` or plain WSGI) to a specific URL prefix. Example:: parent_app.mount('/prefix/', ch
Week 6/server.py:774
Method
mountpoint_wrapper
()
Week 6/server.py:723
Method
open
Find a resource and return a file object, or raise IOError.
Week 6/server.py:2725
Method
params
A :class:`FormsDict` with the combined values of :attr:`query` and :attr:`forms`. File uploads are stored in :attr:`files`.
Week 6/server.py:1258
Method
patch
Equals :meth:`route` with a ``PATCH`` method parameter.
Week 6/server.py:949
Method
path
The value of ``PATH_INFO`` with exactly one prefixed slash (to fix broken clients and avoid the "empty path" edge case).
Week 6/server.py:1187
Method
post
Equals :meth:`route` with a ``POST`` method parameter.
Week 6/server.py:937
Method
prepare
(self, **options)
Week 6/server.py:3872
Method
prepare
(self, **options)
Week 6/server.py:3894
Method
prepare
(self, filters=None, tests=None, globals={}, **kwargs)
Week 6/server.py:3915
Method
prepare
(self, escape_func=html_escape, noescape=False, syntax=None, *
Week 6/server.py:3944
Method
put
Equals :meth:`route` with a ``PUT`` method parameter.
Week 6/server.py:941
Method
query
The :attr:`query_string` parsed into a :class:`FormsDict`. These values are sometimes called "URL arguments" or "GET parameters", but
Week 6/server.py:1233
Method
query_string
The raw :attr:`query` part of the URL (everything in between ``?`` and ``#``) as a string.
Week 6/server.py:1455
Method
raw
Return the header value as is (may be bytes or unicode).
Week 6/server.py:2293
Function
redirect
Aborts execution and causes a 303 or 302 redirect, depending on the HTTP protocol version.
Week 6/server.py:2808
Method
remote_addr
The client IP as a string. Note that this information can be forged by malicious clients.
Week 6/server.py:1530
Method
remote_route
A list of all IPs that were involved in this request, starting with the client IP and followed by zero or more proxies. This does only
Week 6/server.py:1519
Method
remove_hook
Remove a callback from a hook.
Week 6/server.py:697
← previous
next →
201–300 of 341, ranked by callers