'Validate and split the Request\'s path.
**Examples**::
[\'a\'] = split_path(\'/a\')
[\'a\', None] = split_path(\'/a\', 1, 2)
[\'a\', \'c\'] = split_path(\'/a/c\', 1, 2)
[\'a\', \'c\', \'o/r\'] = split_path(\'/a/c/o/r\', 1, 3, True)
:param minsegs: Minimum number of segments to be extracted
:param maxsegs: Maximum number of segments to be extracted
:param rest_with_last: If True, trailing data will be returned as part
of last segment.  If False, and there is
trailing data, raises ValueError.
:returns: list of segments with a length of maxsegs (non-existent
segments will return as None)
:raises ValueError: if given an invalid path'

def split_path(self, minsegs=1, maxsegs=None, rest_with_last=False):

    return split_path((self.environ.get('SCRIPT_NAME', '') + self.environ['PATH_INFO']), minsegs, maxsegs, rest_with_last)
