UNPKG

urllib-next

Version:

Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more. Base undici fetch API.

8 lines (6 loc) 327 B
import type { Except } from 'type-fest'; import type { IncomingHttpHeaders as HTTPIncomingHttpHeaders } from 'node:http'; // fix set-cookie type define https://github.com/nodejs/undici/pull/1893 export interface IncomingHttpHeaders extends Except<HTTPIncomingHttpHeaders, 'set-cookie'> { 'set-cookie'?: string | string[]; }