UNPKG

rjweb-server

Version:

Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS

7 lines (6 loc) 355 B
import { CompressionAlgorithm } from "../types/global"; import GlobalContext from "../types/internal/classes/GlobalContext"; /** * Get the best compression using a header * @since 8.0.0 */ export default function getCompressMethod(doCompress: boolean, header: string, size: number, proxied: boolean, global: GlobalContext): CompressionAlgorithm | null;