unmock-core
Version:
[][npmjs] [](https://circleci.com/gh/unmock/unmock-js) [](h
15 lines • 412 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeHeaderKey = (key) => key.toLowerCase();
exports.isRESTMethod = (maybeMethod) => [
"get",
"head",
"post",
"put",
"patch",
"delete",
"options",
"trace",
].includes(maybeMethod);
exports.isKnownProtocol = (maybeProtocol) => /^https?$/.test(maybeProtocol);
//# sourceMappingURL=utils.js.map