ReadonlybeforeActor that must be registered in the bus before this actor.
ReadonlybusThe bus this actor subscribes to.
ReadonlynameThe name for this actor.
ProtectedgetOptionaldata: () => anyHandles HTTP cache invalidation events.
The invalidation action
ProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => anyRun 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.
The action to test.
A promise that resolves to the test result.
StaticcreateCreates 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.
StaticgetGet the logger from the given context.
An optional context.
The logger or undefined.
StaticgetExtract the requested URL from the action input.
The request input.
The extracted URL.
StaticheadersConvert the given headers object into a raw hash.
A headers object.
StaticisAttempts to determine whether the current environment is a browser or not.
True for browsers and web workers, false for other runtimes.
StaticparseParses a Retry-After HTTP header value following the specification: https://httpwg.org/specs/rfc9110.html#field.retry-after
The raw header value as string
The parsed Date object, or undefined in case of invalid header value
StaticsleepSleeps for the specified amount of time, using a timeout
The amount of milliseconds to sleep
StatictoConverts WhatWG streams to Node streams if required. Returns the input in case the stream already is a Node stream.
A node stream.
StatictoConverts Node streams to WhatWG streams.
A web stream.
A base actor for listening to HTTP events.
Actor types:
See