/// <reference types="node" /> import { CreateRequestOptions, HttpMethod } from '../../definitions'; export declare type SuperAgentRequest = import('superagent').SuperAgentRequest; export declare const PROXY_ENVIRONMENT_VARIABLES: readonly string[]; export declare function createRequest(method: HttpMethod, url: string, { userAgent, proxy, ssl }: CreateRequestOptions): Promise<{ req: SuperAgentRequest; }>; /** * Initiate a request, downloading the contents to a writable stream. * * @param req The request to download to the writable stream. * @param ws Must be a dedicated writable stream that calls the 'close' event. */ export declare function download(req: SuperAgentRequest, ws: NodeJS.WritableStream, { progress }: { progress?: (loaded: number, total: number) => void; }): Promise<void>;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
archive.d.ts | File | 44 B | 0644 |
|
archive.js | File | 146 B | 0644 |
|
color.d.ts | File | 572 B | 0644 |
|
color.js | File | 5.18 KB | 0644 |
|
emoji.d.ts | File | 68 B | 0644 |
|
emoji.js | File | 310 B | 0644 |
|
file.d.ts | File | 204 B | 0644 |
|
file.js | File | 708 B | 0644 |
|
http.d.ts | File | 810 B | 0644 |
|
http.js | File | 3.33 KB | 0644 |
|
logger.d.ts | File | 707 B | 0644 |
|
logger.js | File | 1.64 KB | 0644 |
|
npm.d.ts | File | 991 B | 0644 |
|
npm.js | File | 4.86 KB | 0644 |
|
uuid.d.ts | File | 91 B | 0644 |
|
uuid.js | File | 490 B | 0644 |
|