Package shttp :: Module uri
[hide private]
[frames] | no frames]

Module uri

source code

A couple of functions to interpret and manage URIs.

Functions [hide private]
 
query_string(uri) source code
 
split_query(uri) source code
 
normlocation(dictmatch) source code
 
normurldict(d, host) source code
 
normurl(urlarg) source code
Variables [hide private]
  URI = re.compile(r'(?ix)(?P<protocol>[\d\w]+)://(?P<host>[^:/]...
  QUERYSEP = re.compile(r'(?ix)(?P<path>[^#]+)\?(?P<querysep>[^\...
  first_slash = re.compile(r'^/+')
Variables Details [hide private]

URI

Value:
re.compile(r'(?ix)(?P<protocol>[\d\w]+)://(?P<host>[^:/]+):?(?P<port>\\
d*)(?P<path>/[^#\?]*)?(?P<query>\?[^#]+)?(?P<sharp>#.+)?')

QUERYSEP

Value:
re.compile(r'(?ix)(?P<path>[^#]+)\?(?P<querysep>[^\?]+)$')