send-stream
Version:
Streaming file serving library with Range and conditional-GET support from file system or any streaming sources.
11 lines (10 loc) • 1.31 kB
TypeScript
export type { RequestHeaders, ResponseHeaders, Uint8ArrayOrStreamRange } from './utils';
export { StreamRange, randomBytes, statsToEtag, millisecondsToUTCString, isRangeFresh, contentRange, acceptEncodings, getFreshStatus, } from './utils';
export { BufferStream, MultiStream } from './streams';
export type { CharsetMapping, PrepareResponseOptions, SendOptions, StorageSendOptions, StorageRequestHeaders, StorageOptions, StorageInfo, } from './types';
export { StorageError, MethodNotAllowedStorageError, PreconditionFailedStorageError, RangeNotSatisfiableStorageError, } from './errors';
export { StreamResponse } from './response';
export { Storage } from './storage';
export type { GenericFileData, FileData, GenericFSModule, FSModule, ContentEncodingPath, ContentEncodingMapping, ContentEncodingPreference, RegexpContentEncodingMapping, GenericFileSystemStorageOptions, FileSystemStorageOptions, FilePath, } from './file-system-types';
export { FileSystemStorageError, MalformedPathError, NotNormalizedError, InvalidPathError, ConsecutiveSlashesError, IgnoredFileError, ForbiddenCharacterError, TrailingSlashError, IsDirectoryError, DoesNotExistError, } from './file-system-errors';
export { escapeHTMLInPath, FORBIDDEN_CHARACTERS, GenericFileSystemStorage, FileSystemStorage, } from './file-system-storage';