drupflare/worker - v1.0.4
    Preparing search index...

    Interface FrontContext

    Everything a serving stage reads once the target site is known.

    interface FrontContext {
        bucket: number;
        cache: Cache;
        ctx?: ExecutionContext<unknown>;
        defer: Defer;
        env: SiteWorkerEnv;
        internal: boolean;
        origin: string;
        ownerToken?: string;
        pageRequest: boolean;
        path: string;
        request: Request;
        resolvedSite: string;
        serving: boolean;
        site: string;
        t0: number;
        url: URL;
        visitorPath: string;
        forgetStub(): void;
        laneOf(): RoutingDecision;
        stubOf(): DurableObjectStub;
    }

    Hierarchy (View Summary)

    Index
    bucket: number

    the generation pointer window this request falls in

    cache: Cache
    ctx?: ExecutionContext<unknown>
    defer: Defer
    internal: boolean

    the path began with /__, which belongs to the object and is never a page

    origin: string
    ownerToken?: string

    the owner token a request proved, for the routes that need one

    pageRequest: boolean

    set by the catch-all rewrite, which moves a page path into /serve

    path: string

    the path parameter a page request carries

    request: Request
    resolvedSite: string

    the site resolved before the levers were read

    serving: boolean

    a safe method on /serve, the only request the edge tiers may answer

    site: string
    t0: number

    when the front worker started the request, in ms

    url: URL
    visitorPath: string

    the visitor's own path without its query (url.pathname is /serve after the rewrite)

    • drops the memoised stub so the next read builds a fresh one after a reset

      Returns void

    • the stub for the chosen lane, built on first read

      Returns DurableObjectStub