UNPKG

fetch-to-node

Version:

Node.js-compatible request and response objects for WinterTC runtimes

15 lines 585 B
/** * Verifies that the given val is a valid HTTP token * per the rules defined in RFC 7230 * See https://tools.ietf.org/html/rfc7230#section-3.2.6 */ export declare function checkIsHttpToken(val: string): boolean; /** * True if val contains an invalid field-vchar * field-value = *( field-content / obs-fold ) * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] * field-vchar = VCHAR / obs-text */ export declare function checkInvalidHeaderChar(val: string): boolean; export declare const chunkExpression: RegExp; //# sourceMappingURL=http-common.d.ts.map