def handle_request(environ, start_response):
    try:
        request = Request(environ, start_response)
    except Exception, e:
        return handle_error(e)

    try:
        (re_url, url, callback), kwargs = find_matching_url(request)
        response = callback(request, **kwargs)
    except Exception, e:
        return handle_error(e, request)

    if not isinstance(response, Response):
        response = Response(response)

    return response.send(start_response)
Returns a wrapped version of the called function.
dataset/ETHPy150Open toastdriven/itty/itty.py/handle_request--crossover with--dataset/ETHPy150Open T-002/pycast/pycast/common/profileme.py/_ProfileDecorator.__call__