Vereda
    Preparing search index...

    Interface RequestContext

    What a middleware function sees and can rewrite for a single attempt. headers is a real Headers instance (case-insensitive lookups/sets) and is fresh per attempt — mutating it does not affect other attempts or the caller's original RequestOptions.

    interface RequestContext {
        url: string;
        method: string;
        headers: Headers;
        body?: BodyInit;
        signal: AbortSignal;
        attempt: number;
        ticketId: string;
        partition: string;
        redirect?: RedirectMode;
    }
    Index
    url: string
    method: string
    headers: Headers
    body?: BodyInit
    signal: AbortSignal
    attempt: number

    0 = the first attempt, 1 = the first retry, etc.

    ticketId: string
    partition: string
    redirect?: RedirectMode

    The client's redirect mode, or undefined for fetch's default ("follow"). Middleware may read or override it per attempt.