def parse_payload_v1(event):
    """
    Get HTTP request method/path/body for v1 payloads.
    """
    body = event.get('body')
    method = event.get('httpMethod')
    try:
        package, *_ = event['pathParameters']['package'].split('/')
    except KeyError:
        package = None
    return (method, package, body)