Latest Version: 0.9.6.2

Index of the request module

  • m paste.request ... - This module provides helper routines with work directly on a WSGI environment to solve common requirements.
    • C EnvironHeaders ... - An object that represents the headers as present in a WSGI environment.
    • f path_info_split ... - Splits off the first segment of the path. Returns (first_part, rest_of_path). first_part can be None (if PATH_INFO is empty), '' (if PATH_INFO is '/'), or a name without any /'s. rest_of_path can be '' or a string starting with /.
    • f get_cookies ... - Gets a cookie object (which is a dictionary-like object) from the request environment; caches this value in case get_cookies is called again for the same request.
    • f path_info_pop ... - 'Pops' off the next segment of PATH_INFO, pushing it onto SCRIPT_NAME, and returning that segment.
    • f get_cookie_dict ... - Return a plain dictionary of cookies as found in the request.
    • f resolve_relative_url ... - Resolve the given relative URL as being relative to the location represented by the environment. This can be used for redirecting to a relative path. Note: if url is already absolute, this function will (intentionally) have no effect on it.
    • f parse_querystring ... - Parses a query string into a list like [(name, value)]. Caches this value in case parse_querystring is called again for the same request.
    • f construct_url ... - Reconstructs the URL from the WSGI environment.
    • f parse_formvars ... - Parses the request, returning a MultiDict of form variables.

Top