Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

directoryArchiver: DirectoryArchiver
fileDownloadCache: FileDownloadCache
logger: ILogger

Methods

  • archive(inputPath: string, outputPath?: string, entries?: string[]): Promise<string>
  • createTempDir(downloadId?: string): Promise<string>
  • download(request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, downloadInfo: DownloadStorageItem, id: string): Promise<void>
  • handle(request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>): Promise<void>
  • handleError(response: Response<any, Record<string, any>>, reason: string | Error, status?: number): Promise<void>
  • parseRangeHeader(range: undefined | string | string[], statSize: number): undefined | { end: number; start: number }
  • prepareDownload(request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>, options: PrepareDownloadOptions): Promise<void>
  • streamDownload(status: number, response: Response<any, Record<string, any>>, stream: ReadStream, id: string): void