UNPKG

milliparsec

Version:

tiniest body parser in the universe

5 lines (4 loc) 254 B
import type { IncomingMessage } from 'node:http'; import type { ParserOptions } from './types.ts'; export declare const hasBody: (method: string) => boolean; export declare const checkType: (req: IncomingMessage, type: ParserOptions["type"]) => boolean;