UNPKG

hono

Version:

Web framework built on Web Standards

12 lines (11 loc) 361 B
export interface Accept { type: string; params: Record<string, string>; q: number; } /** * Parse an Accept header into an array of objects with type, parameters, and quality score. * @param acceptHeader The Accept header string * @returns An array of parsed Accept values */ export declare const parseAccept: (acceptHeader: string) => Accept[];