miniget
- Version 4.2.7
- Published
- 34.6 kB
- No dependencies
- MIT license
Install
npm i minigetyarn add minigetpnpm add minigetOverview
A small HTTP(S) GET request library, with redirects and streaming.
Index
Variables
Functions
Namespaces
Variables
variable exportedMiniget
const exportedMiniget: Miniget.MinigetFunction;Functions
function Miniget
Miniget: typeof Miniget;Namespaces
namespace Miniget
namespace Miniget {}variable defaultOptions
const defaultOptions: DefaultOptions;class MinigetError
class MinigetError extends Error {}constructor
constructor(message: string, statusCode?: number);property statusCode
statusCode?: number;interface DefaultOptions
interface DefaultOptions extends Options {}property backoff
backoff: { inc: number; max: number;};property maxReconnects
maxReconnects: number;property maxRedirects
maxRedirects: number;property maxRetries
maxRetries: number;interface MinigetFunction
interface MinigetFunction {}property default
default: MinigetFunction;property defaultOptions
defaultOptions: DefaultOptions;property miniget
miniget: MinigetFunction;property Miniget
Miniget: MinigetFunction;property MinigetError
MinigetError: typeof MinigetError;call signature
(url: string | URL, options?: Miniget.Options): Miniget.Stream;interface Options
interface Options extends RequestOptions {}property acceptEncoding
acceptEncoding?: { [key: string]: () => Transform;};property backoff
backoff?: { inc: number; max: number;};property highWaterMark
highWaterMark?: number;property maxReconnects
maxReconnects?: number;property maxRedirects
maxRedirects?: number;property maxRetries
maxRetries?: number;property transform
transform?: (parsedUrl: RequestOptions) => RequestOptions;interface Stream
interface Stream extends PassThrough {}property abort
abort: (err?: Error) => void;property aborted
aborted: boolean;property destroy
destroy: (err?: Error) => this;property destroyed
destroyed: boolean;property text
text: () => Promise<string>;method on
on: { ( event: 'reconnect', listener: (attempt: number, err?: MinigetError) => void ): this; ( event: 'retry', listener: (attempt: number, err?: MinigetError) => void ): this; (event: 'redirect', listener: (url: string) => void): this; (event: string | symbol, listener: (...args: any) => void): this;};Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (15)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/miniget.
- Markdown[](https://www.jsdocs.io/package/miniget)
- HTML<a href="https://www.jsdocs.io/package/miniget"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 1169 ms. - Missing or incorrect documentation? Open an issue for this package.
