@drupflare/workforce - v0.3.0
    Preparing search index...

    Interface AssetsBinding

    The calling Worker's own static assets.

    An ASSETS binding has no listing API: you can only fetch a path you already know, so this takes a manifest and reads that first. It then spends one subrequest per file, and the free plan allows 50 per invocation. drupflare/worker measured that rather than reasoning about it, after /migrate?all=1 failed with Too many subrequests by single Worker invocation, and settled on 40 against the 50 so there is room for whatever else the invocation does.

    When the budget runs out it hands back a cursor instead of failing, so the caller resumes on the next invocation. An abandoned read leaves nothing behind, because the cursor is returned rather than stored.

    interface AssetsBinding {
        fetch(
            input: string | Request<unknown, CfProperties<unknown>>,
        ): Promise<Response>;
    }
    Index
    • Parameters

      • input: string | Request<unknown, CfProperties<unknown>>

      Returns Promise<Response>