10 lines
532 B
Plaintext
10 lines
532 B
Plaintext
import type { OutgoingHttpHeaders } from 'node:http';
|
|
/**
|
|
* Takes in a nullable WebAPI Headers object and produces a NodeJS OutgoingHttpHeaders object suitable for usage
|
|
* with ServerResponse.writeHead(..) or ServerResponse.setHeader(..)
|
|
*
|
|
* @param headers WebAPI Headers object
|
|
* @returns {OutgoingHttpHeaders} NodeJS OutgoingHttpHeaders object with multiple set-cookie handled as an array of values
|
|
*/
|
|
export declare const createOutgoingHttpHeaders: (headers: Headers | undefined | null) => OutgoingHttpHeaders | undefined;
|