Readonly
beforeActor that must be registered in the bus before this actor.
Readonly
busThe bus this actor subscribes to.
Readonly
nameThe name for this actor.
Protected
getOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyPrepares the request headers, taking into account the environment.
The HTTP action
Headers
Run the given action on this actor.
In most cases, this method should not be called directly. Instead, #runObservable should be called.
The action to run.
A promise that resolves to the run result.
Run the given action on this actor AND invokes the Bus#onRun method.
The action to run.
A promise that resolves to the run result.
Check if this actor can run the given action, without actually running it.
A promise that resolves to the test result.
Static
createCreates an appropriate User-Agent header string for Node.js or other environments. Within browsers, returns undefined, because the value should not be overridden due to potential CORS issues.
Static
getGet the logger from the given context.
An optional context.
The logger or undefined.
Static
getStatic
headersStatic
isStatic
stringConverts a string, including ones with Unicode symbols, to Base64 encoding. This function was adapted from the MDN example function here: https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem
The string value to encode
The Base64-encoded value
Static
toStatic
to
A base actor for listening to HTTP events.
Actor types:
See