Skip to main content

@pantheon-systems/cms-kit

Functions

setSurrogateKeyHeader

setSurrogateKeyHeader(keys, res): string | void

Adds an aggregated list of surrogate keys in the working response.

Parameters

NameTypeDescription
keysnull | stringValue for surrogate-key header in API response.
resServerResponse<IncomingMessage>The active http.ServerResponse object.

Returns

string | void

The current known unique set of surrogate keys.

Defined in

lib/setSurrogateKeyHeader.ts:17