Script class
Properties
compatibility_date
↔ DateTime
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
getter/setter pair
compatibility_flags
↔ List <String >
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
getter/setter pair
created_on
↔ DateTime
When the script was created.
getter/setter pair
etag
↔ String ?
Hashed script content, can be used in a If-None-Match header when updating.
getter/setter pair
handlers
↔ List <String >
When the Worker was created.
getter/setter pair
has_assets
↔ bool
Whether a Worker contains assets.
getter/setter pair
has_modules
↔ bool
Whether a Worker contains modules.
getter/setter pair
hashCode
→ int
The hash code for this object.
no setter inherited
id
↔ String
The id of the script in the Workers system. Usually the script name.
getter/setter pair
last_deployed_from
↔ String ?
The client most recently used to deploy this Worker.
getter/setter pair
logpush
↔ bool
Whether Logpush is turned on for the Worker.
getter/setter pair
migration_tag
↔ String ?
The tag of the Durable Object migration that was most recently applied for this Worker.
getter/setter pair
modified_on
↔ DateTime
When the script was last modified.
getter/setter pair
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
usage_model
↔ WorkerUsageModel
Usage model for the Worker invocations.
getter/setter pair