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

Parameter

Type

Description

headersMap

BothValueHeaders

The initial headers

Returns:

FlattenedHeadersAndCookies