OptionalbodyOptionaldecodedOptionalgetThe resolved route, once routing has set one. Optional: before routing there is nothing to get, and the router itself only reads it as a shortcut.
Check if the given value is equal to the specified value.
The key to check.
The value to compare against.
True if the key's value is equal to the specified value, false otherwise.
Optional ReadonlyisReadonlylocaleThe locale of the event.
ReadonlymetadataThe metadata associated with the event.
OptionalqueryReadonlysourceThe source of the event.
ReadonlytimeThe timestamp of the event creation.
ReadonlytypeThe type of the event.
Get the platform of the event source.
The platform of the event source.
Return a cloned instance.
The metadata container is deep-copied (plain objects and arrays are recreated,
special values kept by reference) so that mutating the clone's metadata — e.g. via
middleware — never leaks back into the original event. This is what makes the
Kernel's originalEvent snapshot a faithful pre-middleware copy.
A cloned instance of the current class.
A stable identity for this event.
What it is for: keying anything that has to survive one event being handled twice. A renderer stores its loader results under this key on the server and reads them back under the same key in the browser, so two renders of the same event find the same data.
Defined here because identity is not a platform's idea. An event that carries a URL has a
sharper one to offer and overrides this: IncomingHttpEvent and IncomingBrowserEvent both
answer with their method and path. An event that carries a payload instead, from a queue or a
timer, is identified by that payload, which is what this computes.
Two properties it must have, and both come from what is excluded: the timestamp is left out, because a server render and a browser render of the same event happen at different moments and must agree; and keys are sorted, because two objects with the same entries in a different order are the same event.
The fingerprint, base64-encoded.
Get data from metadata.
The key to retrieve from metadata.
The value associated with the key or the fallback.
Get data from metadata.
The key to retrieve from metadata.
The value associated with the key or the fallback.
Check if the event source is from a platform.
The platform to check.
True if the event source is from the platform, false otherwise.
Add data to metadata.
The key or object to add to metadata.
Optionalvalue: unknown
The value to associate with the key.
This Event instance.
Represents a Stone incoming event. Used only in StoneJS.