(request)
return str(URLPath.fromRequest(request).click(b'/'))
Given a request, return the base URI of the request

    :param request: a twisted HTTP request
    :type request: :class:`twisted.web.http.Request`

    :return: the base uri the request was trying to access
    :rtype: ``str``
Given a request, return the base URI of the request
Given a request return the base URI of the request
def base_uri_from_request(request):
    """
    Given a request, return the base URI of the request

    :param request: a twisted HTTP request
    :type request: :class:`twisted.web.http.Request`

    :return: the base uri the request was trying to access
    :rtype: ``str``
    """
    return str(URLPath.fromRequest(request).click(b'/'))
def base_uri_from_request ( request ) : return str ( URLPath . fromRequest ( request ) . click ( b'/' ) )