Frontend/25_02_24/node_modules/@tinyhttp/req/dist/accepts.js

6 lines
459 B
JavaScript
Raw Normal View History

2025-02-25 08:55:29 +00:00
import { Accepts } from '@tinyhttp/accepts';
export const getAccepts = (req) => (...types) => new Accepts(req).types(types);
export const getAcceptsEncodings = (req) => (...encodings) => new Accepts(req).encodings(encodings);
export const getAcceptsCharsets = (req) => (...charsets) => new Accepts(req).charsets(charsets);
export const getAcceptsLanguages = (req) => (...languages) => new Accepts(req).languages(languages);
//# sourceMappingURL=accepts.js.map