def extract_params(request):
    """Extracts pertinent info from a request."""
    body = request.args if request.method == "GET" else request.form
    return request.base_url, request.method, body, request.headers