ProtectedconstructorCreate an OutgoingResponse.
The options to create an OutgoingResponse.
Protected_The content of the response.
Protected Optional_The status code of the response.
Protected Optional_The status message of the response.
ReadonlymetadataThe metadata associated with the event.
ReadonlyoriginalThe original content of the response.
ProtectedpreparedThe prepared status of the response.
Optional ReadonlysourceThe source of the event.
ReadonlytimeThe timestamp of the event creation.
ReadonlytypeThe type of the event.
Gets the content of the outgoing response.
The content of the outgoing response.
Gets the prepared status of the outgoing response.
The prepared status of the response.
Gets the status code of the outgoing response.
The status code of the response, or undefined if not set.
Gets the status message of the outgoing response.
The status message of the response, or undefined if not set.
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.
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 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.
Prepare response before sending it.
The incoming event associated with this response.
Optional_container: Container
The container.
This OutgoingResponse instance.
Set the content of the response.
The content to set.
This OutgoingResponse instance.
Add data to metadata.
The key or object to add to metadata.
Optionalvalue: unknown
The value to associate with the key.
This Event instance.
Set the prepared status of the response.
The prepared status to set.
This OutgoingResponse instance.
Set the status code of the response.
The status code.
Optionaltext: string
Optional status message.
This OutgoingResponse instance.
StaticcreateCreate an OutgoingResponse.
The options to create an OutgoingResponse.
A new OutgoingResponse instance.
Class representing an OutgoingResponse.