OptionalfetchOptionalheadersHeaders to attach on every request. Use this to attach authentication headers.
Optional ExperimentaljournalCodec to use for input/outputs. Check JournalValueCodec for more details
OptionalretryOpt in to automatic retries of ambiguous ingress failures (network errors
and transient HTTP statuses 408/425/429/5xx, excluding errors
restate attributes to the invocation itself).
Retries are disabled by default. Set true to enable the built-in
policy (RetryPolicy), or pass a RetryPolicy to tune it.
Even when enabled, regular calls are retried only when an
idempotencyKey is set — without one a retry could double-execute a
non-idempotent invocation. Workflow submissions, attaches, and output
retrieval are also retried: submissions are idempotent by workflow ID,
while attach and output operations only observe the existing workflow. If a
submission retry observes a workflow accepted by an earlier attempt, its
status is PreviouslyAccepted.
OptionalserdeDefault serde to use for ingress payloads when no operation-specific serde is provided. Applies to handler calls, workflow attaches/output polling, awakeable resolution, and attached invocation results.
Defaults to restate.serde.json.
Restate ingress URL. For example: http://localhost:8080
Custom fetch client
Allows you to provide a different fetch implementation (e.g., undici fetch for HTTP/2 support).