def get_http_request(request, slug=None):
    """
    Get http request values
    :param request:
    :param slug: Checks if slug is provided
    :return: Content/model type, request parameter and user creator
    :rtype: Strings
    """

    model_type = request.GET.get('type')
    url_parameter = request.GET.get('pk')
    user = request.user
    if slug:
        url_parameter = request.GET.get('slug')
    return model_type, url_parameter, user