Skip to content

@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 ​

HttpPushOptions

Returns ​

HttpPushTransport

Properties ​

kind ​

readonly kind: "http-push" = "http-push"

Defined in: sdk/ts/sdk/src/host/transport/http-push.ts:39

Always http-push.

Implementation of ​

TaskTransport.kind

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 ​

PushedTask

Returns ​

Promise<PushResult>

Implementation of ​

TaskTransport.push