def choose_request_func()

in kibana/lambda_function.py [0:0]


def choose_request_func(event: dict) -> callable:
    if (
        event.get("queryStringParameters")
        and "method" in event["queryStringParameters"].keys()
    ):
        return METHOD_MAP[event["queryStringParameters"]["method"].lower()]
    else:
        return METHOD_MAP[event["httpMethod"].lower()]