def _auth_via_api_key(self, user, api_key, **kw):
        key = 'Authorization'
        value = 'ApiKey %s:%s' % (user, api_key)
        self.request.add_header(key, value)
Strips all MXP codes from a string.
dataset/ETHPy150Open datafolklabs/drest/drest/api.py/TastyPieAPI._auth_via_api_key--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/utils/ansi.py/ANSIParser.strip_mxp