Calls the object that owns a name and parses its JSON reply.
The Worker environment.
The name identifying the object — a room, a tenant, a session.
Path on the object, e.g. /increment.
Request options, such as { method: 'POST' }.
The object's parsed response.
Creates a fresh object and returns the id needed to reach it again.
Use this when the caller — not a name — owns the identity: a new session, a new game, a new upload.
The Worker environment.
The new object's id, as a string.
Reports whether the namespace is bound to this Worker.
The Worker environment.
true when the binding is present.
Coordination capability, backed by Durable Objects.
Remarks
A name maps to exactly one object, so concurrent requests for the same name queue behind each other instead of racing — that is the whole point of reaching for this rather than KV or D1.
Requests reach an object through its stub's
fetch, so the URLs below are addressed to the object, not to the internet. The object class itself must be exported from the Worker entry and declared as a migration inwrangler.json.Author
Bayu Dwiyan Satria
Version
1.0.0
Since
1.0.0