Data interface for the type of action.

interface IActionDereference {
    acceptErrors?: boolean;
    context: IActionContext;
    headers?: Headers;
    mediaTypes?: (() => Promise<undefined | Record<string, number>>);
    method?: string;
    url: string;
}

Hierarchy (view full)

Properties

acceptErrors?: boolean

By default, actors will reject upon receiving non-200 HTTP responses. If this option is true, then all HTTP responses will cause the action to resolve, but some outputs may therefore contain empty quad streams.

The input context that is passed through by actors.

headers?: Headers

Optional HTTP headers to pass.

mediaTypes?: (() => Promise<undefined | Record<string, number>>)

An optional callback to retrieve the mediaType mappings

Type declaration

    • (): Promise<undefined | Record<string, number>>
    • Returns Promise<undefined | Record<string, number>>

method?: string

Optional HTTP method to use. Defaults to GET.

url: string

The URL to dereference