@backblaze-labs/b2-mcp
    Preparing search index...

    Function configFromHttpHeaders

    • Header-compatibility parser. Returns null only when the required primary header pair is absent/incomplete. Malformed optional pairs or conflicting duplicate headers throw CredentialResolutionError with a stable code.

      Parameters

      • req: { headers: IncomingHttpHeaders }

        Request-like object containing incoming headers.

      Returns B2Config | null

      A B2 configuration, or null when the primary header pair is absent.

      CredentialResolutionError when supplied HTTP credentials are malformed.