MCPcopy Create free account

hub / github.com/SolSaviour/INFO1112-Materials / functions

Functions341 in github.com/SolSaviour/INFO1112-Materials

Method_set_status
(self, status)
Week 6/server.py:1707
Methodadd_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
Methodadd_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
Methodaddress_string
(self)
Week 6/server.py:3247
Methodapp
Bottle application handling this request.
Week 6/server.py:1172
Methodapp
(environ, start_response)
Week 6/server.py:3361
Methodappend
(self, key, value)
Week 6/server.py:2251
Methodapply
(self, other)
Week 6/server.py:1953
Methodapply
(self, callback, route)
Week 6/server.py:2036
Methodauth
HTTP authentication data as a (user, password) tuple. This implementation currently supports basic (not digest) authentication
Week 6/server.py:1505
Functionauth_basic
Callback decorator to require HTTP auth (basic). TODO: Add route(check_auth=...) parameter.
Week 6/server.py:3149
Methodbody
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
Methodcharset
Return the charset specified in the content-type header (default: utf8).
Week 6/server.py:1797
Methodchunked
True if Chunked transfer encoding was.
Week 6/server.py:1380
Methodclose
(self)
Week 6/server.py:1693
Methodclose
(self)
Week 6/server.py:2641
Methodco
(self)
Week 6/server.py:3957
Methodcode
(self)
Week 6/server.py:3961
Methodcontent_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
Methodcontent_type
The Content-Type header as a lowercase-string (default: empty).
Week 6/server.py:1487
Functioncookie_decode
Verify and decode an encoded string. Return an object or None.
Week 6/server.py:3065
Functioncookie_encode
Encode and sign a pickle-able object. Return a (byte) string
Week 6/server.py:3055
Methodcookies
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
Methodcopy
Returns a copy of self.
Week 6/server.py:1676
Functiondebug
Change the debug level. There is only one debug level supported at the moment.
Week 6/server.py:2943
Methoddecorator
(func)
Week 6/server.py:711
Methoddefault
(self)
Week 6/server.py:2609
Methoddefault_error_handler
(self, res)
Week 6/server.py:975
Methoddelete
Equals :meth:`route` with a ``DELETE`` method parameter.
Week 6/server.py:945
Methoddelete_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
Methoderror
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
Functionfdel
(_)
Week 6/server.py:1915
Functionfget
(_)
Week 6/server.py:1906
Methodfilename
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
Methodfiles
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
Methodfilter
(self, names)
Week 6/server.py:2263
Methodfind_module
(self, fullname, path=None)
Week 6/server.py:2061
Methodfixed_environ
(environ, start_response)
Week 6/server.py:3226
Methodforms
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
Functionfset
(_, value)
Week 6/server.py:1912
Methodfullpath
Request path including :attr:`script_name` (if present).
Week 6/server.py:1450
Methodget
(self, value, default=None)
Week 6/server.py:1540
Methodget
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
Methodget
(self, key, default=None, index=-1)
Week 6/server.py:2260
Methodget_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
Methodget_config
Lookup a config field and return its value, first checking the route.config, then route.app.config.
Week 6/server.py:604
Methodget_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
Methodget_event_loop
(self)
Week 6/server.py:3509
Methodget_event_loop
(self)
Week 6/server.py:3549
Methodget_header
Return the value of a request header, or a given default value.
Week 6/server.py:1203
Methodget_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
Methodget_syntax
Tokens as a space separated string (default: <% %> % {{ }})
Week 6/server.py:4088
Methodget_url
Return a string that matches a named route
Week 6/server.py:870
Methodgetall
Return a (possibly empty) list of values for a key.
Week 6/server.py:2176
Methodgetall
(self, key)
Week 6/server.py:2257
Methodgetargs
(path)
Week 6/server.py:415
Methodglobal_config
This reads or sets the global settings stored in class.settings.
Week 6/server.py:3846
Methodheaderlist
WSGI conform list of (header, value) tuples.
Week 6/server.py:1772
Methodheaders
A :class:`WSGIHeaderDict` that provides case-insensitive access to HTTP request headers.
Week 6/server.py:1198
Methodheaders
An instance of :class:`HeaderDict`, a case-insensitive dict-like view on the response headers.
Week 6/server.py:1733
Methodhook
Return a decorator that attaches a callback to a hook. See :meth:`add_hook` for details.
Week 6/server.py:707
Functionhtml_quote
Escape and quote a string to be used as an HTTP attribute.
Week 6/server.py:3092
Functionindex
()
Week 6/server.py:4418
Methodinit
(self, parser, opts, args)
Week 6/server.py:3452
Methodis_ajax
Alias for :attr:`is_xhr`. "Ajax" is not the right term.
Week 6/server.py:1500
Methodis_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
Methoditer_headers
Yield (header, value) tuples, skipping headers that are not allowed with the current response status code.
Week 6/server.py:1766
Methoditerallitems
(self)
Week 6/server.py:2145
Methoditerkeys
(self)
Week 6/server.py:2136
Methoditervalues
(self)
Week 6/server.py:2139
Methodjson
If the ``Content-Type`` header is ``application/json`` or ``application/json-rpc``, this property holds the parsed content of
Week 6/server.py:1282
Methodkeys
(self)
Week 6/server.py:1556
Methodload
(self)
Week 6/server.py:3455
Methodload_module
(self, fullname)
Week 6/server.py:2067
Methodload_module
Load values from a Python module. Example modue ``config.py``:: DEBUG = True SQLITE = {
Week 6/server.py:2350
Methodloader
(self, name)
Week 6/server.py:3933
Methodlog_request
(*args, **kw)
Week 6/server.py:3250
Methodmatch
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
Methodmerge
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
Methodmeta_list
Return an iterable of meta field names defined for a key.
Week 6/server.py:2536
Methodmethod
The ``REQUEST_METHOD`` value as an uppercase string.
Week 6/server.py:1193
Methodmount
Mount an application (:class:`Bottle` or plain WSGI) to a specific URL prefix. Example:: parent_app.mount('/prefix/', ch
Week 6/server.py:774
Methodmountpoint_wrapper
()
Week 6/server.py:723
Methodopen
Find a resource and return a file object, or raise IOError.
Week 6/server.py:2725
Methodparams
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
Methodpatch
Equals :meth:`route` with a ``PATCH`` method parameter.
Week 6/server.py:949
Methodpath
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
Methodpost
Equals :meth:`route` with a ``POST`` method parameter.
Week 6/server.py:937
Methodprepare
(self, **options)
Week 6/server.py:3872
Methodprepare
(self, **options)
Week 6/server.py:3894
Methodprepare
(self, filters=None, tests=None, globals={}, **kwargs)
Week 6/server.py:3915
Methodprepare
(self, escape_func=html_escape, noescape=False, syntax=None, *
Week 6/server.py:3944
Methodput
Equals :meth:`route` with a ``PUT`` method parameter.
Week 6/server.py:941
Methodquery
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
Methodquery_string
The raw :attr:`query` part of the URL (everything in between ``?`` and ``#``) as a string.
Week 6/server.py:1455
Methodraw
Return the header value as is (may be bytes or unicode).
Week 6/server.py:2293
Functionredirect
Aborts execution and causes a 303 or 302 redirect, depending on the HTTP protocol version.
Week 6/server.py:2808
Methodremote_addr
The client IP as a string. Note that this information can be forged by malicious clients.
Week 6/server.py:1530
Methodremote_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
Methodremove_hook
Remove a callback from a hook.
Week 6/server.py:697
← previousnext →201–300 of 341, ranked by callers