Skip to main content

getFlattenedHeadersMapAndCookies

@h4ad/serverless-adapter > getFlattenedHeadersMapAndCookies

(function) getFlattenedHeadersMapAndCookies

Transforms a header map into a single value headers and cookies

Signature:

export declare function getFlattenedHeadersMapAndCookies(headersMap: BothValueHeaders): FlattenedHeadersAndCookies;

Parameters

ParameterTypeDescription
headersMapBothValueHeadersThe initial headers

Returns:

FlattenedHeadersAndCookies