my-idlers/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js

14 lines
186 B
JavaScript
Raw Normal View History

'use strict';
module.exports = header => {
switch (header) {
case ':method':
case ':scheme':
case ':authority':
case ':path':
return true;
default:
return false;
}
};