AniLink - v3.1.0
    Preparing search index...

    Class BaseOperationAbstract

    Shared state and request dispatch for every provider's operations.

    This class owns the instance authentication token, resolved transport settings, and per-request option merge from requestOptions. It delegates HTTP calls to the provider-agnostic sendRequest pipeline. Protocol-specific base classes subclass it. AniListOperation adds GraphQL envelope handling, and RestOperation adds query-string and JSON-body handling. Neither duplicates the shared code here.

    Hierarchy (View Summary)

    Index
    • Constructs a new BaseOperation instance.

      Parameters

      • OptionalauthToken: RequestAuthInput

        The authentication material used for API requests. A string is treated as a bearer token for backwards compatibility.

      • Optionaloptions: RequestOptions

        Transport settings scoped to this instance (timeout, cancellation, retry policy, lifecycle hooks).

      • OptionalstateOwner: object

        Stable object keying cross-request transport state (circuit breaker, retry budget, pacing deadlines). Provider wirings pass one shared owner to every operation they construct so that state spans the whole client; when omitted, a fresh per-instance object is used and the state stays scoped to this operation.

      Returns BaseOperation