Data interface for the type of action.

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

Type Parameters

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.

mediaType?: string

The mediatype of the source (if it can't be inferred from the source)

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

metadata?: T

Metadata to be given to the parser

method?: string

Optional HTTP method to use. Defaults to GET.

url: string

The URL to dereference