UNPKG

amplify-s3-chunk-upload

Version:

A custom storage upload plugin for AWS Amplify. Instead of reading file completely in memory, it helps to read file chunk by chunk.

14 lines (13 loc) 599 B
import { HttpHandlerOptions } from '@aws-sdk/types'; import { HttpHandler, HttpRequest, HttpResponse } from '@aws-sdk/protocol-http'; import { FetchHttpHandlerOptions } from '@aws-sdk/fetch-http-handler'; export declare const SEND_PROGRESS_EVENT = "sendProgress"; export declare class AxiosHttpHandler implements HttpHandler { private readonly httpOptions; private readonly emitter?; constructor(httpOptions?: FetchHttpHandlerOptions, emitter?: any); destroy(): void; handle(request: HttpRequest, options: HttpHandlerOptions): Promise<{ response: HttpResponse; }>; }