'Defines the handler function for the given URL path.
The path is a slash-formatted string (e.g., "/api/1/en/parser").
The handler is a function that takes
arguments (path) and keyword arguments (query data).'

def __setitem__(self, path, handler):

    p = ('/' + path.strip('/'))
    p = p.lower()
    p = (p.encode('utf8') if isinstance(p, unicode) else p)
    if callable(handler):
        dict.__setitem__(self, p, (handler, define(handler)[2:]))
    else:
        dict.__setitem__(self, p, (handler, ((), {})))
