UNPKG

webserv

Version:

a quick, flexible, fully typed development server

7 lines (6 loc) 232 B
export interface ContentHandler<T> { type: string; subtype: string; handler: T; } export declare function contentNegotiator<T>(handlers: ContentHandler<T>[], defaultHandler?: T): (accept: string) => T | undefined;