@staticmethod
def _should_base64_encode(binary_types, request_mimetype):
    """
        Whether or not to encode the data from the request to Base64

        Parameters
        ----------
        binary_types list(basestring)
            Corresponds to self.binary_types (aka. what is parsed from SAM Template
        request_mimetype str
            Mimetype for the request

        Returns
        -------
            True if the data should be encoded to Base64 otherwise False

        """
    return request_mimetype in binary_types or '*/*' in binary_types
