@triliumnext/express-partial-content
Version:
A partial content handler implementation for any readable stream with Express. Based on this blog post: https://www.codeproject.com/Articles/813480/HTTP-Partial-Content-In-Node-js.
12 lines (11 loc) • 779 B
TypeScript
import { Request, Response } from "express";
import { Range } from "./Range";
export declare const getHeader: (name: string, req: Request) => string | string[];
export declare const getRangeHeader: any;
export declare const setHeader: (name: string, value: string, res: Response) => Response<any, Record<string, any>>;
export declare const setContentTypeHeader: any;
export declare const setContentLengthHeader: any;
export declare const setAcceptRangesHeader: any;
export declare const setContentRangeHeader: (range: Range | null, size: number, res: Response) => Response<any, Record<string, any>>;
export declare const setContentDispositionHeader: (fileName: string, res: Response) => Response<any, Record<string, any>>;
export declare const setCacheControlHeaderNoCache: any;