Documentation
    Preparing search index...

    Represents the original request as sent to this handler.

    A request object includes the request headers, and the raw unparsed request body.

    interface Request {
        attemptCompletedSignal: AbortSignal;
        attemptHeaders: ReadonlyMap<string, undefined | string | string[]>;
        body: Uint8Array;
        extraArgs: unknown[];
        headers: ReadonlyMap<string, string>;
        id: string;
    }
    Index

    Properties

    attemptCompletedSignal: AbortSignal

    This is a signal that is aborted when the current attempt has been completed either successful or unsuccessfully. When the signal is aborted, the current attempt has been completed and the handler should not perform any more work, other than cleanup any external resources that might be shared across attempts (e.g. database connections).

    attemptHeaders: ReadonlyMap<string, undefined | string | string[]>

    Attempt headers - the following headers are sent by the restate runtime. These headers are attempt specific, generated by the restate runtime uniquely for each attempt. These headers might contain information such as the W3C trace context, and attempt specific information.

    body: Uint8Array

    Raw unparsed request body

    extraArgs: unknown[]

    Extra arguments provided to the request handler: Lambda: [Context] Cloudflare workers: [Env, ExecutionContext] Deno: [ConnInfo] Bun: [Server] These arguments can contain request-specific values that could change after a suspension. Care should be taken to use them deterministically.

    headers: ReadonlyMap<string, string>

    Request headers - the following headers capture the original invocation headers, as provided to the ingress.

    id: string

    The unique id that identifies the current function invocation. This id is guaranteed to be unique across invocations, but constant across reties and suspensions.