parseHeaders
@h4ad/serverless-adapter > parseHeaders
(function) parseHeaders
Parse HTTP Raw Headers Attribution to https://github.com/kesla/parse-headers/blob/master/parse-headers.js
Signature:
export declare function parseHeaders(headers: string): Record<string, string | string[]>;
Parameters
Parameter | Type | Description |
---|---|---|
headers | string | The raw headers |
Returns:
Record<string, string | string[]>