This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
TwitToMast/node_modules/tall/lib/esm/index.d.ts
Penelope Gomez / Pogmommy 172b799a07 add tall
2023-02-14 14:54:24 -07:00

22 lines
773 B
TypeScript

/// <reference types="node" />
/// <reference types="node" />
import { IncomingMessage } from 'http';
import { RequestOptions } from 'https';
export declare class Follow {
follow: URL;
constructor(follow: URL);
}
export declare class Stop {
stop: URL;
constructor(stop: URL);
}
export interface TallPlugin {
(url: URL, response: IncomingMessage, previous: Follow | Stop): Promise<Follow | Stop>;
}
export declare function locationHeaderPlugin(url: URL, response: IncomingMessage, previous: Follow | Stop): Promise<Follow | Stop>;
export interface TallOptions extends RequestOptions {
maxRedirects: number;
timeout: number;
plugins: TallPlugin[];
}
export declare const tall: (url: string, options?: Partial<TallOptions>) => Promise<string>;