diff --git a/lib/server/v2/commands/Get.d.ts b/lib/server/v2/commands/Get.d.ts index 45975ce8..1f0c30de 100644 --- a/lib/server/v2/commands/Get.d.ts +++ b/lib/server/v2/commands/Get.d.ts @@ -1,6 +1,17 @@ /// import { HTTPRequestContext, HTTPMethod } from '../WebDAVRequest'; import { ResourceType } from '../../../manager/v2/fileSystem/CommonTypes'; +export interface IRange { + min: number; + max: number; +} +export declare function parseRangeHeader(mimeType: string, size: number, range: string): { + ranges: IRange[]; + separator: any; + len: number; + createMultipart: (range: IRange) => string; + endMultipart: () => string; +}; export default class implements HTTPMethod { unchunked(ctx: HTTPRequestContext, data: Buffer, callback: () => void): void; isValidFor(ctx: HTTPRequestContext, type: ResourceType): boolean; diff --git a/src/server/v2/commands/Get.ts b/src/server/v2/commands/Get.ts index fd4bbe94..783e27f3 100644 --- a/src/server/v2/commands/Get.ts +++ b/src/server/v2/commands/Get.ts @@ -77,7 +77,7 @@ class RangedStream extends Transform } } -interface IRange +export interface IRange { min : number max : number