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.

7 lines (6 loc) 286 B
/// <reference types="node" /> import type { Except } from 'type-fest'; import type { IncomingHttpHeaders as HTTPIncomingHttpHeaders } from 'node:http'; export interface IncomingHttpHeaders extends Except<HTTPIncomingHttpHeaders, 'set-cookie'> { 'set-cookie'?: string | string[]; }