rjweb-server
Version:
Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS
8 lines (7 loc) • 388 B
TypeScript
/// <reference types="node" />
import { Content } from "./parseContent";
import { CookieSettings } from "../types/internal";
/**
* Generate a Hash from a Body, Headers & Status Code to be used for caching using SHA1
* @since 6.0.0
*/ export default function toETag(data: Buffer, headers: Record<string, Content>, cookies: Record<string, CookieSettings>, status: number): string | null;