def path_info_peek(self):
        path = self.path_info
        if not path:
            return None
        path = path.lstrip('/')
        return path.split('/', 1)[0]
Given an incoming request, and an outgoing URL representation,
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webob-1.2.3/webob/request.py/BaseRequest.path_info_peek--crossover with--dataset/ETHPy150Open tomchristie/django-rest-framework/rest_framework/reverse.py/preserve_builtin_query_params