

def _selectParseHeader(self, header):
    '\n        Choose an C{ICredentialFactory} from C{_credentialFactories}\n        suitable to use to decode the given I{Authenticate} header.\n\n        @return: A two-tuple of a factory and the remaining portion of the\n            header value to be decoded or a two-tuple of C{None} if no\n            factory can decode the header value.\n        '
    elements = elements.split(b' ')
    scheme = elements[0].lower()
    for fact in self._credentialFactories:
        if (fact.scheme == scheme):
            return (fact, b' '.join(elements[1:]))
    return (None, None)

dataset/ETHPy150Open twisted/twisted/twisted/web/_auth/wrapper.py HTTPAuthSessionWrapper._selectParseHeader/VarMisuse@16/146 `header`->`elements`