def get_request_data(request):
    """Return (data, mimetype, charset) triple for Flask request."""
    mimetype = request.mimetype
    charset = request.mimetype_params.get('charset')
    data = request.get_data()
    return (data, mimetype, charset)