@oona/vlo / host / HttpPushTransport
Class: HttpPushTransport
Defined in: sdk/ts/sdk/src/host/transport/http-push.ts:37
Pushes tasks to a remote worker over signed HTTP. Built by the dispatcher per configured queue.
Implements
Constructors
Constructor
new HttpPushTransport(
options):HttpPushTransport
Defined in: sdk/ts/sdk/src/host/transport/http-push.ts:47
Throws a plain Error when secret is empty: tasks are never pushed unsigned.
Parameters
options
Returns
HttpPushTransport
Properties
kind
readonlykind:"http-push"="http-push"
Defined in: sdk/ts/sdk/src/host/transport/http-push.ts:39
Always http-push.
Implementation of
Methods
push()
push(
task):Promise<PushResult>
Defined in: sdk/ts/sdk/src/host/transport/http-push.ts:62
POSTs the task with the four vlo-* headers. Never throws: a network error, a timeout or a 5xx is accepted: false without fatal; a non-retryable 4xx sets fatal.
Parameters
task
Returns
Promise<PushResult>